Andu, do you know what is sent in the http header from a browser such as
Netscape/Explorer. If you could send me an example input I could see if I
can get the CGI I am playing with to work?
> From: andu <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 14 Jul 2000 14:50:37 -0400 (EDT)
> To: [EMAIL PROTECTED]
> Subject: Re: POST
>
>
>
>> Can anyone help?
>>
>> I'm trying to simulate a browser posting a form to a CGI. Forms can either
>> use the "get" or "post" method. How do I implement these in MetaCard?
>
> You need to do something like this:
>
> put hostnametoaddress("host.com") into tAddress
> ##in case you don't have the server's address in xxx.xxx.xxx.xxx form
> open socket to tAddress & ":80"
> put [field containing the text to post] into var1
> write var1 & crlf to socket tAddress & ":80"
> close socket tAddress & ":80"
>
> The actual text that should go to the server contains a header which starts
> with POST. The rest of the header is more or less typical and includes
> the length of the post.
> After the header you have the actual data you are posting.
>
> Best way to figure all that out is to use the mchttpd server (which doesn't do
> POST yet) to output a post request in a field.
> The above script is just a sketch, take it as such.
>
>>
>> Thanks
>>
>>
>> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
>> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>>
>>
>
> Regards, Andu
> __________________
> [EMAIL PROTECTED]
>
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.