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
Why do I get HTTP/1.1 400 Bad Request errors?
Moderator: General Moderators
-
kalpeshpatel
- Forum Newbie
- Posts: 5
- Joined: Sat Aug 22, 2009 12:24 am
Why do I get HTTP/1.1 400 Bad Request errors?
Last edited by kalpeshpatel on Wed Aug 26, 2009 9:08 am, edited 1 time in total.
Re: Why do I get HTTP/1.1 400 Bad Request errors?
If you post a generic question then you'll get a generic response.
Check your server logs.
Check your server logs.