I hate to be the one to dig up an old post but i have a question .
where you see /badger.exe
I'm trying to get it to accept a new file from a TextBox.Code:Private Sub Sck_Connect() Sck.SendData "HEAD /badger.exe HTTP/1.0" & vbNewLine & _ "Host: www.woof.com" & vbNewLine & _ "User-Agent: blah blah..." & vbNewLine & vbNewLine End Sub
It works fine if do it like this:
But i Can't get it to accept those values outside the Sub routine.Code:Private Sub Sck_Connect() option1 = "/something/somethingelse/" option2 = "file.exe" Sck.SendData "HEAD " & option1 & Option2 & " HTTP/1.0" & vbNewLine & _ "Host: www.woof.com" & vbNewLine & _ "User-Agent: blah blah..." & vbNewLine & vbNewLine End Sub
Any help on this at all would greatly appreciated
Thanks in Advance




Reply With Quote