Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Example uploading a file
User1353

Posts: 1
Member Since: 05/02/00
posted May 2, 2000 9:13 PM

Is there an example of using the HTTP control to upload a file to a web server? I am reviewing the product but all examples I've found are posting fields instead of sending a file via HTTP POST.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 2, 2000 11:03 PM

The methods seem pretty straight forward. Was there something you tried that didn't work?

User1262

Posts: 2
Member Since: 07/17/00
posted July 17, 2000 1:47 AM

This thread caught my attention as I am testing this software for an automated file uploading application. I cannot find any references to attaching a file to the POST as opposed to just data.

I have tried using post with the file name in the data argument like "file1=e:\test.txt", but this doesn't pass the actual file. The server claims that the post works but the file wasn't there. I don't think the file is being put in the Header where RFC 1867 expects it to be.

It would be nice to have an example of posting a file, or some help on this particular form of posting.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 17, 2000 1:54 PM


try it with the data argument as
 
"e:\test.txt"

also, make sure that the timeout value is high enough to allow the entire transfer (or that it is 0)

-ken
User1262

Posts: 2
Member Since: 07/17/00
posted July 18, 2000 7:56 PM

I have now given up on use Web Tool, I could not get it to POST the file. It would appear to fool the server into thinking it had received the file, but not send any data. I would suggest that Dart add a working example of this, otherwise I won't be even considering purchasing it.

I have managed to get it working using msxml3.dll, and the XMLHTTP30 class. But I have had to learn a bit about HTTP, and how to format data. It would certainly be easier to have one a DLL that did a little neater, but I would have to be confident that it did what I wanted.
User1057

Posts: 1
Member Since: 11/13/00
posted November 13, 2000 6:24 PM

I have mailed you about this but anyone else reading, especially DART staff, please please please can you provide a simple example of uploading using POST to the MS Posting Acceptor. I will definitely register your WebTool library if you can only show me that it works how I need it to!
Thanks
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX