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

Re: Accessing html forms...



Chris wrote:

> On Tue, 2 Jun 1998, Jens B. Jorgensen wrote:
>
> > "POST" requests should be quite simple to do in perl. Here's what a post request
> > looks like from the client:
> >
> >
> >      POST / HTTP/1.0
> >      Content-type: application/x-www-form-urlencoded
> >      Content-length: 24
> >
> >      foo=fdsaf&bar=jk%3Blasdf
> >
> > The "variables" are passed in the body of the request. You can just
> > string them together, <var>=<val>[&<var>=<val>]... doing character
> > replacement as described in the RFCs (hint: write your job in perl and
> > use the CGI module which includes uri_escape()).
> >
>
> Sorry, I think we've got confussed.  I know perl very well, and as Ralph
> said it has proved invaluable.  However, what I want to do is ~send~
> something to a html server via a POST operation.

Nope, no confusion. The above is HTTP. I've included the perl-script to post.

--
Jens B. Jorgensen
jjorgens@bdsinc.com

Attachment: post.pl
Description: Perl program


Reply to: