lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev -post_data or -get_data (fwd)


From: Klaus Weide
Subject: Re: lynx-dev -post_data or -get_data (fwd)
Date: Tue, 24 Aug 1999 08:59:00 -0500 (CDT)

On Tue, 24 Aug 1999, Michael Beattie wrote:

> 
> I am trying to create a script to message my mobile phone from
> www.mtnsms.com.
> 
> the command I am using:
> 
> lynx -accept_all_cookies -cookie_file=sms.cookies  www.mtnsms.com/sms
                                                     ^^^^^^^^^^^^^^^^^^

That is not the same as the action in the <form> (below).  The right
URL may be <http://www.mtnsms.com/sms.asp> or something else, depending
on the URL base of the document that contains the form.

You should also use a full URL.  URLs start with a scheme like "http:".

> -post_data < post.parms
> 
> post.parms:
> 
> msgTo=+64212979060&msgText=Test

Do you want to send the equivalent of a typed '+' character?  Then you
have to URL-encode it as %2B.  A '+' in application/x-www-form-urlencoded
post content (what is what you are sending) stands for a space character.

> ---

I don't think the file needs to include the separator - end-of-file should
be enough.

> can someone set me right here? I have looked through the FAQ's online, and
> found similar things, but I cannot get this to work.

You don't say what happens when you do what you described, and how that
differs from what you expect to happen.  So we don't really know what your
problem is.

See the lynx-dev archive for other responses (or subscribe to the list).
You'll find another recent thread about -post_data in the archive.

   Klaus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]