[OSM-dev] HTTP error 417 with cURL

Nick Whitelegg nick at hogweed.org
Fri May 11 09:36:31 BST 2007

On Friday 11 May 2007 00:50, you wrote:
> Hi,
> > I've just discovered I don't get a 200 OK, I get a HTTP code 417. This
> > came up on another post (by Lars) earlier this week suggesting it was an
> > incompatiblity between cURL and lighthttpd
> Funny, same issue came up on talk at the same time posted by someone
> else. You have to keep CURL from setting that evil header. Details were at
> http://curl.haxx.se/mail/archive-2005-11/0134.html
> - but is there a workaround?
> I had a quick glance at the CURL PHP binding and it seems that there's
> no equivalent for the command-line -H switch that lets you suppress a
> header. The relevant man page seems to be
> http://www.php.net/manual/en/function.curl-setopt.php
> If you're lucky, you can use CURLOPT_HTTPHEADER, set the problematic
> header to an empty string, and maybe it works.

Tried an empty string and even null, but no luck. Seems I'll have to write the 
header myself, though the easiest fix is probably to stop lighthttpd 
rejecting this line :-)


More information about the dev mailing list