Why do I get HTTP/1.1 400 Bad Request errors?
Posted: Sat Aug 22, 2009 12:35 am
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
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