Need help with TCP OPEN with UserID and Password.
The server evidently does not like the way I am handling the user id and password – see code below:
Site$ = “www.MySite.com”
File$ = http://UserID
[email protected]/SECURE/index.html
TCP OPEN "http" AT Site$ AS #1 TIMEOUT 60000
TCP PRINT #1, "GET " & File$ & " HTTP/1.0"
TCP PRINT #1, "Referer: http://www.MySite.com/"
TCP PRINT #1, "User-Agent: User ID Test"
TCP PRINT #1, ""
…
When I execute the code above, I get the message below:
Authorization Required
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn’t understand how to supply
the credentials required.
I know the user id and password are correct - I'm testing on my own site.
Does anyone have any suggestions?
Thank you,
Michael Rich
The server evidently does not like the way I am handling the user id and password – see code below:
Site$ = “www.MySite.com”
File$ = http://UserID

TCP OPEN "http" AT Site$ AS #1 TIMEOUT 60000
TCP PRINT #1, "GET " & File$ & " HTTP/1.0"
TCP PRINT #1, "Referer: http://www.MySite.com/"
TCP PRINT #1, "User-Agent: User ID Test"
TCP PRINT #1, ""
…
When I execute the code above, I get the message below:
Authorization Required
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn’t understand how to supply
the credentials required.
I know the user id and password are correct - I'm testing on my own site.
Does anyone have any suggestions?
Thank you,
Michael Rich
Comment