in reply to testing website with login
As jonadab says, it is essential to check the HTML source of the site you are accessing to make certain you have the correct field names, and to insure you're not trying to put 20 chars into a field with a limit of 10, for example...
If you still have trouble after checking the source, I would try using a module such as HTTP::Recorder or WWW::Mechanize::Shell to record a successful manual form submission. The output of HTTP::Recorder, for instance, can be "dropped" right into your WWW::Mechanize scripts.
Another important tool for finding out what is really happening behind the scenes between server and browser is a protocol analyzer such as Ethereal.
Don't forget that Super Search is your friend here on PM. Many questions such as yours have been asked recently...
HTH,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: testing website with login
by hesco (Deacon) on Mar 12, 2006 at 20:45 UTC |