Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: ASP postBack from Perl?

by Jaap (Curate)
on Jun 11, 2005 at 10:40 UTC ( [id://465785]=note: print w/replies, xml ) Need Help??


in reply to ASP postBack from Perl?

Most of the time a GET request works too for form submission, so you might wanna try something like this:
use LWP::Simple; my $baseURL = "http://thesite/thepage.aspx"; my page = get($baseURL); if ($page =~ m/name="__VIEWSTATE" value="([^"]+)"/s) { my $viewState = $1; my $submitResult = get("$baseURL?__EVENTTARGET=theItemID&__EVENTARGU +MENT=newValue&__VIEWSTATE=$viewState"); }
Warning: untested code.

Replies are listed 'Best First'.
Re^2: ASP postBack from Perl?
by wataguy (Initiate) on Jun 11, 2005 at 10:57 UTC
    The problem with that is that __VIEWSTATE for the page I'm reading is about 200K (thanks, Microsoft!), which blows the character limits on GET — running that code gives me a "broken pipe".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://465785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-19 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found