I set 'austria' to '43699'. $form1->dump gives this:<FORM ACTION="/sms/austria.php3" METHOD="post" NAME="austria"> <SELECT SIZE="1" NAME="austria"> <OPTION VALUE="error" SELECTED>select Net</OPTION> <OPTION VALUE="43664">0664 (A1)</OPTION> <OPTION VALUE="43676">0676 (T-Mobile)</OPTION> <OPTION VALUE="43699">0699 (ONE)</OPTION> <OPTION VALUE="43650">0650 (tele.ring)</OPTION> </SELECT> <INPUT TYPE="image" SRC="/images/sms/weiter.gif" ALT="weiter" NAME="i +mage" BORDER="0"> </FORM>
Now I tried various ways to click this form:POST http://subscriber.chello.at/sms/austria.php3 austria=43699 (option) [error|43664|43676|*43699|43650] image=<UNDEF> (image)
with:$res = $ub->request($form[1]->click()); $res = $ub->request($form[1]->click('image')); $res = $ub->request($form[1]->click('image',0,0)); $res = $ub->request(POST $URL, @TEL);
In Perl I always get an empty response:@TEL = [austria, '43699', 'image.x', '0', 'image.y', '0']; ( or @TEL = [austria, '43699']; ) $URL = 'http://subscriber.chello.at/sms/austria.php3';
The Hash of '_request' looks like:_msg => Found _rc => 302 _content =>
Using Lynx I can fillout and successfully submit this form. Trace gives me this entries:Request: _method => POST _headers => HTTP::Headers=HASH(0x84e0cc4) _uri => http://subscriber.chello.at/sms/austria.php3 _content => austria=43699&image.x=0&image.y=0
Does anybody has a hint who I can go on or what I should try to submit this with Perl?GridText - post_data: austria=43699&image.x=0&image.y=0 .. LYpush[0]: address:http://subscriber.chello.at/sms/index.php3 title:hello, i'm chello getfile: getting http://subscriber.chello.at/sms/austria.php3
Thanks to all in advance,
Carl
In reply to submit Form with Lynx but not Perl? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |