|
From: | David Woolley |
Subject: | Re: [Lynx-dev] Post_data, or, how can I automagically send a username/password to a site? |
Date: | Thu, 1 Dec 2016 08:07:56 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
On 01/12/16 04:44, jeremy bentham wrote:
lynx -post_data <site> username or barcode: <username> (the name of the username field) password: <password> --- <CR><CR>
That is not a standard format for post data. Post data should be directly in the wire format, see: <http://stackoverflow.com/questions/14551194/how-are-parameters-sent-in-an-http-post-request>. Also, it is unlikely that anyone would include spaces in the wire format for forms, and if they did, they would need to be replaced by "+" or "%20" The labels on the displayed form need bear no resemblance to the wire format.
I would assume that Lynx sends application/x-www-form-urlencoded as the content-type, so can only post in that format.
[Prev in Thread] | Current Thread | [Next in Thread] |