in reply to Problem in posting using LWP::UserAgent
The "ERROR" you are seeing is being printed by the php script ... presumably because it doesn't like your input. the HTTP status code itself is a 200, indicating that everything went fine at the communication layer.
As for your problem, if you take closer look at the form you are trying to fake out you might notice that it is using "multipart/form-data" as the encoding type ... that's very important to remember.
If you search arround for "multipart/form-data", you'll find this Q&A which quotes from important parts of the docs for the "POST" method that you should re-read to understand how to indicate (to both the POST method, and the server on the other end) that you want do do a "file upload"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem in posting using LWP::UserAgent
by nilay (Initiate) on Feb 09, 2004 at 12:52 UTC | |
by hossman (Prior) on Feb 09, 2004 at 18:12 UTC | |
by nilay (Initiate) on Feb 11, 2004 at 06:17 UTC | |
by hossman (Prior) on Feb 11, 2004 at 19:06 UTC |