The only thing that might be missing here is the session cookie.  The
JSP page sets up a session cookie and might expect to get the same
session cookie back for the submission to work correctly.

Try doing this to get the cookie:

wget --keep-session-cookies --save-cookies cookies \
     http://mospublic.ercot.com/ercot/jsp/midterm_load_forecast.jsp

Followed by:

wget --load-cookies cookies \
     --post-data="marketdate=2004-01-22&scrollsize=24" \
     http://mospublic.ercot.com/ercot/jsp/midterm_load_forecast.jsp

With these options, I get "no data available" for 2004-01-22
(presumably because it's not on the list), but the data I obtain for
2004-01-24 seems correct.

Note: to get the `--keep-session-cookies' option, you will need to
compile a CVS checkout of Wget.  See the home page at
http://wget.sunsite.dk for instructions how to get it.

Reply via email to