How do I use wget to post an html form?

I have a form like this located at http://www.sms-online.web.id :

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<body>

    <form method="post" enctype="multipart-form-data" name="my_form" onsubmit="clearTextBoxCounter()" action="http://www.sms-online.web.id/kirim" >

      <input type=hidden name=teks value=><center><b>KIRIM SMS GRATIS</b></center><br><br>
    Nomer:<br />
      <input type="text" maxlength="20" name="Phonenumbers" value="08888888"/>
      <br />

    <br />
    Isi:<br />
    <textarea rows="5" cols="50" onKeyPress=check_length(this.form); onKeyDown=check_length(this.form); name=Text >
    Content of my sms
    </textarea>
    <br />

    <input id="saveForm" class="btTxt" type="submit" value="KIRIM" name="TOMBOL" />

    </body>
    </html>

      

I would like to post this form and then submit it, how do I use wget to do this job? I read about wget --post-data xxx

, but I still don't know what I should enter in the terminal, based on this html file, should I enter text like this? (I'm really not sure if this will work)wget --post-data value=08585858 textarea="Content of my sms" http://www.sms-online.web.id

+3


source to share


1 answer


From this SO Question:

wget --post-data "value=08585858&textarea=\"Content of sms\"" <url>

      



Also check this one .

+4


source







All Articles