lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] How to format data for -post_data


From: David Woolley
Subject: Re: [Lynx-dev] How to format data for -post_data
Date: Wed, 27 Jul 2005 07:41:53 +0100 (BST)

> I have seen quite a number of posts related to -post_data and its
> uses. However, I fail to see a mention of how to submit a form having
> a textarea input field.

Lynx does nothing special.  You need to follow the rules of the protocol.

> Is there something that I can do to format the input data such that
> lynx can pass it on correctly to the server? A sample form data that I
> would like to submit is shown below.

You need to URL Encode (use %xx) in the same way as would be done in
form data, sent with the GET method, in the URL itself.
> 
> $ cat file.txt
> Name=Soumitra
> &Address=House no 000,
> PO + Vill: My village;
> Some country

Name=Soumitra&Address=House+no+000,%0d%0aPO+%2b+Vill%3a+My+village;%0d%0aSome+country

I'm not sure that you need to encode the ":", but if you do, you may need
to encode the ";".





reply via email to

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