in reply to POST to an aspx destination

You seem to be constructing a GET request, not a POST request. Does the site return the data you want when you use the URL (as-is) from within your browser?

Replies are listed 'Best First'.
Re^2: POST to an aspx destination
by TendulkarIsGod (Acolyte) on Sep 24, 2010 at 03:14 UTC

    Thats exactly the thing, it is not. When I just type in the url as-is into the browser, it's still not getting the content you would expect, which makes me think its really not a Perl question at all.

    I think the reason its not working is the way the form accepts input. Dates can be entered in the fields in 3 different formats into the form. I'm guessing it somehow standardizes this input when you hit the submit button, but to what standard format, I do not know. I have played with a lot of different date formats to try to figure out which one it uses, but other than contacting whoever maintains that site and asking them what format they use, I'm out of ideas.

    Anyways, thanks for the response

      I recommend you learn about how CGI works and how it passes the parameters.

      That said, you can try to use WWW::Mechanize to simulate a browser, or for example WWW::Mechanize::Firefox if Javascript is needed. In both cases, you will still have to understand what goes over the wire and replicate that.