home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5552 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: nntp.hut.fi!usenet
  2. From: oahvenla@hyppynaru.cs.hut.fi (Osma Ahvenlampi)
  3. Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
  4. Subject: Re: CGI-programming for AWS ?
  5. Date: 16 Mar 1996 19:17:50 +0200
  6. Organization: What, me, organised?
  7. Sender: oahvenla@hyppynaru.cs.hut.fi
  8. Distribution: inet
  9. Message-ID: <jdjwx4lkldt.fsf@hyppynaru.cs.hut.fi>
  10. References: <1686.6645T919T930@vip.cybercity.dk>
  11. NNTP-Posting-Host: hyppynaru.cs.hut.fi
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=US-ASCII
  14. In-reply-to: bipsen@vip.cybercity.dk's message of 12 Mar 1996 14:16:20 GMT
  15. X-Newsreader: Gnus v5.1
  16.  
  17. In article <1686.6645T919T930@vip.cybercity.dk> bipsen@vip.cybercity.dk (Brian Ipsen) writes:
  18. > I wonder what is happening, when the users clicks on "submit" - I know,
  19. >that the form is handled by the program in /cgi-bin/epdcontest , but
  20. >how does this program get the input from the browser and so on ???
  21.  
  22. First of all, if you're interested, the documentation is available by
  23. reading the HTTP specification and your WWW server docs.
  24.  
  25. In case of METHOD=POST, the information is submitted to the server by
  26. the folling data-stream:
  27.  
  28. --
  29. POST url HTTP/1.0
  30. X-Your-Headers: whatever
  31.  
  32. field1=content?field2=two+words?field3=foo
  33. --
  34.  
  35. As opposed to METHOD=GET:
  36.  
  37. --
  38. GET url?field1=content?field2=two+words?field3=foo HTTP/1.0
  39. X-Your-Headers: whatever
  40.  
  41. --
  42.  
  43. On the server side, the difference usually is that METHOD=GET receives
  44. the input in the form of one command line argument, whereas
  45. METHOD=POST reads it from standard input, and thus is not vulnerable
  46. to command line length restrictions or possible command line parsing
  47. by the OS or shell used.
  48.  
  49. -- 
  50. A friend in need is a pest indeed. 
  51. | "Osma Ahvenlampi" <mailto:oa@iki.fi> <http://www.iki.fi/oa/> |
  52. | Amiga&BeBox&ClassAct&Voodoo&ARTech cool stuff: I-Net225&AWeb |
  53.                                                               --
  54.