POST to a NetDynamics form
D.-P. Deng (deng@planetu.com)
Mon, 09 Feb 1998 13:56:22 -0800
I'm using lwp to post a simple form to NetDynamics page. The form has only
one text input field (the form has no problem processing via a browser).
But after I post the the sample codes below, the form never get processed.
Anyone has any experience with that? I appreciate any tips on that. I
suspect it has to do with NetDynamics's SPIDERSESSION variable.
Sample code lines are
use LWP::UserAgent;
$ua = new LWP::UserAgent;
my $req = new HTTP::Request
'POST','http://localhost/scripts/ndisapi.dll/SignUp';
$req->content_type('application/x-www-form-urlencoded');
$req->content('LastName=deng&SPIDERSESSION=%3fAcbQAKZGs%5fWne%5b%40XcgmQF%40
GZ%3fDlEEWZ%5bCkbQMuOGs%5fmE%3fTGo%7d%5d%5f%5eL');
my $res = $ua->request($req);
print $res->as_string;