Page 1 of 1

Why do I get HTTP/1.1 400 Bad Request errors?

Posted: Sat Aug 22, 2009 12:35 am
by kalpeshpatel
i am using IIS server for running php .
i have one page where in i am trying to copy an image file from a webserver to my local server.

$image_path => local path
$image_url = "http://www.xxx.com/dira/images/events.png";
copy($image_url,$image_path);

but I get an HTTP Bad Request error.
The same code works fine on UNIX environment. and also on windows working with WAMP server.

The allow_url_include option is also is kept ON.

please help me.

thank you

Re: Why do I get HTTP/1.1 400 Bad Request errors?

Posted: Sat Aug 22, 2009 12:58 am
by requinix
If you post a generic question then you'll get a generic response.

Check your server logs.