Dear all,
I've been trying to upload a file to a website using Inet. To simulate it I was trying the code with localhost. Will it work? If not, is there anybody who can help me? I was trying out it with the following code:

Inet2.AccessType = icDefault
Inet2.Protocol = icHTTP
Inet2.URL = "http://localhost"
Inet2.UserName = ""
Inet2.Password = ""
fromFile = "read.txt"
toFile = "http://localhost/wap/readme.txt"
Inet2.Execute , "put " & fromFile & toFile
Dim x As Integer
x = Inet2.StillExecuting
While x <> 0
x = Inet2.StillExecuting
DoEvents
Wend
Inet2.Execute , "quit"
-----------------------------
I was trying with XMLHTTP2.6 but that didn't work and showed the upload.asp had an error at line 20.
Please help me to resolve this.
Ram