Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I can easily upload files with ftp protocol using inet control in vb6. But with http protocol, I'm getting an error "unable to complete request". And I am not sure if my server supports http upload. Any help plz
Posted
Updated 11-Aug-14 13:40pm
v3
Comments
Sergey Alexandrovich Kryukov 11-Aug-14 23:11pm    
1) Do you expect to solve your problem without seeing any code sample? 2) Do you really have any special reason to mess with VB6?
—SA
adeelIdealist 12-Aug-14 8:41am    
Private Sub Form_Load()
Inet1.UserName = "user1824063"
Inet1.Password = "********"
'Inet1.Protocol = icFTP
'Inet1.URL = "ftp://bbc.comxa.com"
Inet1.Execute , "PUT F:\file.txt /new.txt"
End Sub

The above code works just fine, but when I change the protocol to http and url to 'Inet1.URL = "http://bbc.comxa.com" the error occurs.
adeelIdealist 12-Aug-14 8:44am    
And the reason for messing with vb6 is, the target computer might not have .Net framework installed on it.
Sergey Alexandrovich Kryukov 12-Aug-14 11:25am    
Still not clear why VB6. This is "technology" which was obsolete at the time when it was first introduced. :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900