TendulkarIsGod has asked for the wisdom of the Perl Monks concerning the following question:
Please someone help me see the what the h I am doing wrong in this. This might actually end up being a more aspx question than perl, but anyways.
Given command line arguments for a date range, say $to and $from, I am trying to get POST data from a webpage http://somesite.com/foo.aspx. According to the source code for this page, the names of the fields I want to pre-populate are beginDate and endDate
I have a subroutine called build_tree(url) that builds an html::treebuilder tree out of any url passed to it. This is working because I have used it in other scripts. It behaves very well
my code looks like this
$url = "http://www.somesite.com/foo.aspx?beginDate=$from&endDate=$to"; $tree = build_tree($url);
For some reason, this is not behaving like it should. For some reason, the returned content looks like I built a tree from http://somesite.com/foo.aspx, it seems to ignore anything after the '?'.
Can anyone spot what im doing wrong? Is this question more suited to an aspx site? Please help, or please point me in the right direction.
Many thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POST to an aspx destination
by Corion (Patriarch) on Sep 22, 2010 at 20:37 UTC | |
by TendulkarIsGod (Acolyte) on Sep 24, 2010 at 03:14 UTC | |
by Corion (Patriarch) on Sep 24, 2010 at 06:44 UTC | |
|
Re: POST to an aspx destination
by zentara (Cardinal) on Sep 23, 2010 at 10:16 UTC |