Index: browser.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/browser/Attic/browser.inc,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 browser.inc
--- browser.inc	11 Nov 2009 05:49:44 -0000	1.1.2.6
+++ browser.inc	11 Nov 2009 05:51:14 -0000
@@ -415,6 +415,12 @@
     if ($this->curl) {
       $this->curlExecute(array(
         CURLOPT_POST => TRUE,
+        // This is a fix for the Curl library to prevent Expect: 100-continue
+        // headers in POST requests, that may cause unexpected HTTP response
+        // codes from some webservers (like lighttpd that returns a 417 error
+        // code). It is done by setting an empty "Expect" header field that is
+        // not overwritten by Curl.
+        CURLOPT_HTTPHEADER => array('Expect' => ''),
         CURLOPT_URL => $url,
         CURLOPT_POSTFIELDS => http_build_query($form['post'], NULL, '&'),
       ));
