On Mon, 6 Mar 2000, Jr-Huang Shiau wrote:
> Hi! Lynx:
>
> Can you tell me how to use "lynx -post_data http://a.to/test.html" ?
> The version of lynx is 2.8.3, I run it on the Linux mandrake 6.1, and
> the test.html contains the following:
>
> <form method=POST action="post.cgi">
> ...
> <input type=text name=name size=20 >
> ...
> <textarea name=comments COLS=<input type=submit value="DO IT"> <input type=reset
>value=CLEAR>
> ...
>
> I try to do so:
> -------------------------------------
> lynx -post_data http://a.to/test.html
> Steven
> Test it!
> ---
> -------------------------------------
> but it always tell me:
> Method Not Allowed
You don't "POST to" the URL of the page that contains the FORM,
but to the URL given in the ACTION attribute. In your case, that
would be http://a.to/post.cgi .
Please see the lynx-dev archives of the last several months
for more hints (http://www.flora.org/lynx-dev/html/ , look for
"post_data" or similar).
Klaus