Re: wget --post-data issue



On Sat, 21 Jan 2012 11:57:42 -0500, Tony Baldwin wrote:

On Sat, Jan 21, 2012 at 01:03:06PM +0000, Camaleón wrote:
On Sat, 21 Jan 2012 18:10:12 +0530, J. Bakshi wrote:

(...)

The roll number always have 10 as default, and there is a text-area
to input comment. How can I use wget with --post-data option to send
the values ? And how can I use wget for [ Button: "Submit" ] ?

Based on the manual of wget, I would try:

wget --post-data 'go=1&roll_no=10&message=your_message_here' http://www.thesite.com/index.php


You could do the same with curl

(...)

Yes, I know.

I also use curl for my UPS monitoring scripts to send me SMS alerts.

But I have nothing against wget and the user specifically asked for it.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/jferi2$8j9$25@xxxxxxxxxxxxxxx



Relevant Pages

  • Re: wget/curl cannot work on debian amd64
    ... I have a problem with using wget and curl on debian amd64 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: wget or curl?
    ... Betreff: Re: wget or curl? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: shell scripting firefox
    ... something like lynx or wget or curl). ... in one breath tells us they don't need to be regulated (which is to say: ... don't need to be regulated (that they can morally self-regulate) ... ...
    (comp.unix.shell)
  • Re: Auto submitting a form that contains a file field
    ... Client end is NOT php. ...  Thanks, - Dave ... post-file in wget or the equivalent in CURL to do the thing. ...
    (comp.lang.php)
  • Re: shell scripting firefox
    ... something like lynx or wget or curl). ... I agree the most desired option is wget or curl and if those fail then ... you are forced to simulate a gui. ...
    (comp.unix.shell)