Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: ASP postBack from Perl?

by Jaap (Curate)
on Jun 11, 2005 at 10:40 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-09-23 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?