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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kalpeshpatel
Forum Newbie
Posts: 5
Joined: Sat Aug 22, 2009 12:24 am

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

Post 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
Last edited by kalpeshpatel on Wed Aug 26, 2009 9:08 am, edited 1 time in total.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post by requinix »

If you post a generic question then you'll get a generic response.

Check your server logs.
Post Reply