web server help please

Just starting out? Need help? Post your questions and find answers here.
vincenz
New User
New User
Posts: 9
Joined: Fri Dec 19, 2003 12:33 am

web server help please

Post by vincenz »

Has anyone sucessfully created a webserver that "allows" GET and POST commands?
Website Creations Ltd
Creators of www.codelock.co.nz
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post by plouf »

not me but GET method is easy the parameters passed
in HTTP URL request so just extract
string between GET and HTTP/1.1
and split it in every & and you have parameters
Christos
Proteus
Enthusiast
Enthusiast
Posts: 113
Joined: Wed Sep 17, 2003 8:04 pm
Location: The Netherlands

Post by Proteus »

I once tried it. GET is indeed easy.

Because it's HTML-encoded, you can use StringField() to get the part between GET and HTTP/1.1. Then you can use it to parse the parameters.

When I got to the POST part, I freaked out and stopped working on it.
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Have you tried using the CGI lib?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply