File upload using Internet Transfer Control and HTTP PUT 
Author Message
 File upload using Internet Transfer Control and HTTP PUT
I am trying to upload files to a webserver using the Internet Transfer
Control from VB and Windows Scripting Host. Instead of keeping a FTP server
running just to receive files I want to use the HTTP protocol with the "PUT"
command.

Apparently, according to the documentation, the Internet Transfer Control
should be able to do so using the Execute method like in

Set Inet = WScript.CreateObject("InetCtls.Inet.1")
Inet.RequestTimeOut=20
Inet.URL = "http://myserver/Uploaddir/Uploadfile.htm"
Inet.Execute , "PUT", "C:\localdir\localfile.htm"

However, the localfile is not uploaded. Instead the string
"C:\localdir\localfile.htm" is uploaded as the new content of the document
at http://myserver/Uploaddir/Uploadfile.htm

Does anyone know how to upload files?

Thanks

Henrik Kj?r Nielsen



Mon, 16 Apr 2001 03:00:00 GMT  
 File upload using Internet Transfer Control and HTTP PUT
Site Server 3.0 is installed on the server which I believe includes an
updated version of the posting acceptor. Uploading files using the file
upload control that comes with Site Server works fine. But, as far as I
know, the Internet Transfer Control doesn't make use of the posting
acceptor.

Henrik Kj?r


Quote:
>Have you installed the posting acceptor on your IIS server?

>--
>Chanan Braunstein
>Vitis Research, Inc.
>http://vitis-ir.com


>>I am trying to upload files to a webserver using the Internet Transfer
>>Control from VB and Windows Scripting Host. Instead of keeping a FTP
server
>>running just to receive files I want to use the HTTP protocol with the
>"PUT"
>>command.

>>Apparently, according to the documentation, the Internet Transfer Control
>>should be able to do so using the Execute method like in

>>Set Inet = WScript.CreateObject("InetCtls.Inet.1")
>>Inet.RequestTimeOut=20
>>Inet.URL = "http://myserver/Uploaddir/Uploadfile.htm"
>>Inet.Execute , "PUT", "C:\localdir\localfile.htm"

>>However, the localfile is not uploaded. Instead the string
>>"C:\localdir\localfile.htm" is uploaded as the new content of the document
>>at http://myserver/Uploaddir/Uploadfile.htm

>>Does anyone know how to upload files?

>>Thanks

>>Henrik Kj?r Nielsen



Thu, 19 Apr 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. File upload using Internet Transfer Control and HTTP PUT

2. HTTP file upload using Internet transfer control

3. How to upload a file by Internet Transfer Control in HTTP protocol

4. Internet Transfer Control - Upload File With http

5. Uploading File with HTTP POST useing the VB5.0(sp3) internet transfer Control

6. Internet Transfer Control and HTTP Uploads

7. Using the PUT method with HTTP and the Internet transfer controll

8. problem uploading a file using internet transfer control

9. Help on Upload a file using Internet Transfer control

10. Internet Transfer Control HTTP PUT

11. Http put - Internet transfer control

12. Internet Transfer Control HTTP Put question

 

 
Powered by phpBB® Forum Software