|Newbie questions about Pliant
reply HTTP Form
|Message posted by maybe Knut Virow on 2001/07/25 15:30:26
From a HTTP server I will get forms of this type:
<form method=POST action="http://f5.parsimony.net/forum5727/wwwforum.cgi">
<input type=hidden name="followup" value="3827">
<input type=text name="name" value="" size=50 maxlength=80><p>
<textarea COLS=75 ROWS=24 wrap="virtual" name="body">
some default text
<input type="submit" name="abschicken" value="Text abschicken">
<input type="submit" name="vorschau" value="Vorschau">
<input type="reset" value="Abbrechen">
I want to write a pliant program that simualte a click on one
of the "submit buttons". With other words which code reply the
form to the server?
I suppose I have to use somthing with
like for reading the form before?
|Message posted by maybe Hubert Tonneau on 2001/07/25 16:11:32
|The current Pliant code won't help you for submitting forms,
because the Pliant HTTP file system with use GET to read URLs and PUT
to change them.
In order to submit a form, one need to use POST HTTP command.
This is a general problem about the HTTP protocol: the way the client
passes values to the server is a mixture of the URL, the options in
the URL, and the extra datas provided with the POST command.
Maybe we should implement using POST instead of PUT when a 'http_form'
option is passed to the Pliant 'Stream' 'open' method.
Anyway, this is not a top priority for me. Contributors ?