-
HTTP header with winsock
Hello,
I am writing a client and server that will communicate using port 80 to limit firewall interfearence.
I would like to put an HTTP header on each communication in either direction to further protect the communications from firewall interfearence.
What does an HTTP header consist of and can I just put it in as the beginning of the string that is going to be sent using senddata.
Thanks for any advice.
- Jake
-
So this is sort of a bump but I have some elaboration...
After much research I think I need to use the POST method something like this:
winsock.SendData "POST " & strDataToSend & " HTTP/1.1"
Would that be right? Would the server using winsock receive the data in strDataToSend? or the whole phrase "POST myData HTTP/1.1"
Am I way off here?
Thanks
- J
-
Here's a web-server I made (but you can't POST(upload) on it)
VB - A simple HTTP Web Server
If you want to figure out how to use the POST command:
1: look it up on the net... that's how I found out when making my server
2: make an html file that has a form with some textfields and a submit button, and make it submit to your server, then put a break point at the line where you receive data, or just print the POST request in your immediate window, and take a look at the data.