This minimal code (only the initial line in the header - no other header lines) works to download a small file, but I wondered if there were any other header lines in the request that I should add? Perhaps I was just lucky in having only the initial line?
I looked on the web but couldn't find a discussion on which lines are required. For all I know, it may be also considered impolite if I don't include certain headers line?
If there's a reference to read, that would be nice to know as well.
I looked on the web but couldn't find a discussion on which lines are required. For all I know, it may be also considered impolite if I don't include certain headers line?
Code:
Tcp Open "HTTP" AT "www.garybeene.com" AS #1 TIMEOUT 60000 Tcp Print #1, "GET /files/tcp_test.txt HTTP/1.0" Tcp Print #1, "" Tcp Recv #1, 4096, Buffer$ Tcp Close #1
Comment