Hi for some reasons I can't submit this little, simple form with Perl:
<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>
I set 'austria' to '43699'. $form1->dump gives this:
POST http://subscriber.chello.at/sms/austria.php3 austria=43699 (option) [error|43664|43676|*43699|43650] image=<UNDEF> (image)
Now I tried various ways to click this form:
$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);
with:
@TEL = [austria, '43699', 'image.x', '0', 'image.y', '0']; ( or @TEL = [austria, '43699']; ) $URL = 'http://subscriber.chello.at/sms/austria.php3';
In Perl I always get an empty response:
_msg => Found _rc => 302 _content =>
The Hash of '_request' looks like:
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
Using Lynx I can fillout and successfully submit this form. Trace gives me this entries:
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
Does anybody has a hint who I can go on or what I should try to submit this with Perl?

Thanks to all in advance,
Carl


In reply to submit Form with Lynx but not Perl? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.