🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.networking
Article #5459

Re: CGI-programming for AWS ?

#5459
From: Osma Ahvenlampi
Date: Sat, 16 Mar 1996 17:17
37 lines
1932 bytes
In article <1686.6645T919T930@vip.cybercity.dk> bipsen@vip.cybercity.dk (Brian Ipsen) writes:
> I wonder what is happening, when the users clicks on "submit" - I know,
>that the form is handled by the program in /cgi-bin/epdcontest , but
>how does this program get the input from the browser and so on ???

First of all, if you're interested, the documentation is available by
reading the HTTP specification and your WWW server docs.

In case of METHOD=POST, the information is submitted to the server by
the folling data-stream:

--
POST url HTTP/1.0
X-Your-Headers: whatever

field1=content?field2=two+words?field3=foo
--

As opposed to METHOD=GET:

--
GET url?field1=content?field2=two+words?field3=foo HTTP/1.0
X-Your-Headers: whatever

--

On the server side, the difference usually is that METHOD=GET receives
the input in the form of one command line argument, whereas
METHOD=POST reads it from standard input, and thus is not vulnerable
to command line length restrictions or possible command line parsing
by the OS or shell used.

-- 
A friend in need is a pest indeed. 
| "Osma Ahvenlampi" <mailto:oa@iki.fi> <http://www.iki.fi/oa/> |
| Amiga&BeBox&ClassAct&Voodoo&ARTech cool stuff: I-Net225&AWeb |
                                                              --
Technical Details
Message-ID: <jdjwx4lkldt.fsf@hyppynaru.cs.hut.fi>
Path: arc1-ca.pugleaf.net!nntp.hut.fi!usenet
References: <1686.6645T919T930@vip.cybercity.dk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.hut.fi!usenet
From: oahvenla@hyppynaru.cs.hut.fi (Osma Ahvenlampi)
Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
Subject: Re: CGI-programming for AWS ?
Date: 16 Mar 1996 19:17:50 +0200
Organization: What, me, organised?
Sender: oahvenla@hyppynaru.cs.hut.fi
Distribution: inet
Message-ID: <jdjwx4lkldt.fsf@hyppynaru.cs.hut.fi>
References: <1686.6645T919T930@vip.cybercity.dk>
NNTP-Posting-Host: hyppynaru.cs.hut.fi
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
In-reply-to: bipsen@vip.cybercity.dk's message of 12 Mar 1996 14:16:20 GMT
X-Newsreader: Gnus v5.1