| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Error 12032 when using PUT |
| ofirgil From: Cambridge, ON Canada Posts: 9 Member Since: 12/12/02 |
posted December 12, 2002 8:13 AM I have a problem trying to upload a file to a web site. This code works fine on our test machines but not at the client site. We created a virtual directory with write and browse rights and we are trying to upload a file to it programmatically: httpCtl.timeOut = 6000000 httpCtl.url = tempHTTPURL httpCtl.Version = "HTTP/1.1" If tempHTTPUser <> "" Then httpCtl.Put tempHTTP, , , , tempHTTPUser, tempHTTPPwd Else httpCtl.Put tempHTTP End If We get error 12032 - The Win32 Internet function needs to redo the request. Any ideas? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 12, 2002 8:43 AM Hi, Are you able to fo a Get ok? Does it work ok if you first do a Get, then the Put (as described in other posts if you do a Search for 12032 on this forum)? Thanks, -ken |
| ofirgil From: Cambridge, ON Canada Posts: 9 Member Since: 12/12/02 |
posted December 12, 2002 9:09 AM I have looked at the other posts and I am not doing anything at all except this bit of code I attached (this bit of code is the sole use of this control that we are doing). I can do anything I want on the test computer but that computer works fine. I can write a special test program and send it to the client. Do you have any suggestion or sample code that I can use for a test program? What exactly should I be testing for? I had the client create a test site on the same machine the program is on with no rights restrictions and still got the same problem. Their WININET.DLL is newer then my WININET.DLL. I have version 5.5 and they have 6. Will that have any affect? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 12, 2002 9:22 AM Hi, Yes, my suggestion is to perform a Get first, then do the Put. -ken |
| ofirgil From: Cambridge, ON Canada Posts: 9 Member Since: 12/12/02 |
posted December 12, 2002 9:26 AM I do not do this on regular basis. What does that mean? Do I send an HTTP request to the root of the site first as if to get the directory listing? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 12, 2002 1:54 PM Hi, In every case that I can remember where this error was returned, it was because the client was connecting through MS Proxy. Can you confirm that this is the case here? The proxy does not allow Post and Put requests through. However, if do a Get, the request will get through. Once through the proxy, the subsequent requests, including Put, will also get through. So first, just try doing a Get on any page on the server. Does that work? Then try the Get followed by the Put, and see what happens. Thanks, -ken |
| ofirgil From: Cambridge, ON Canada Posts: 9 Member Since: 12/12/02 |
posted December 12, 2002 4:33 PM We get the same error even pointing to a web site on the same machine. There is no proxy there- just hitting the same machine the program is running on. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 13, 2002 8:58 AM Hi, Ok, in that case, I would use a protocol sniffer to see exactly what is passing between the control and the server. It should provide clues as to what the problem is. -ken |
| ofirgil From: Cambridge, ON Canada Posts: 9 Member Since: 12/12/02 |
posted December 13, 2002 9:08 AM I have never used one. Can you recommend one? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 13, 2002 9:26 AM Hi, Yes, TracePlus/Web Detective is easy to use. You can obtain a trial here: http://www.sstinc.com/home_webanal.html -ken |
| rgeinc From: Danville, IN USA Posts: 14 Member Since: 05/19/01 |
posted December 31, 2002 5:26 PM About a year ago I experienced the same error using the POST method. http://support.dart.com/postings?topicid=1627 The cause was using both NT AUTH and Basic AUTH and having IIS configured with a DOMAIN in the Basic AUTH settings. Apparently, it (WinInet) is getting a 401 but not handling it correctly due to the domain configuration being differen than both the Workstation Domain AND the default Basic Realm. The work around at that time was to perform a HEAD request immediately followed by the POST again. This overcame the error at that time. Since then and with various updates to IE and the dart controls, the error re-appeared with the same customer experiencing the problem before. Even with the original HEAD fix. The solution this time was to re-issue the post without any POST data and then issue the post as it should be issued. I wonder if you can PUT nothing and then do the real PUT. -Rex |
| ofirgil From: Cambridge, ON Canada Posts: 9 Member Since: 12/12/02 |
posted December 31, 2002 5:56 PM Thank you for your help. I will try that. |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|