Results 1 to 3 of 3

Thread: HTTP header with winsock

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    california
    Posts
    245

    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

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    california
    Posts
    245
    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

  3. #3
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width