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: WIN 32 Int. Function needs to redo the request
beskra
BESKRA@LPGUYS.COM

From: Palos Hills, IL USA
Posts: 5
Member Since: 01/21/02
posted January 21, 2002 4:40 PM

Hello,

I am having a problem with the Dart control at one of my clients location's. They are trying to send post data to our server and keep receiveing the following error message:

Error 12032 - The WIN32 Internet Function Needs to redo the request.

What am I doing wrong in my code that is causing this to happen? They do have a proxy server at this location. However, I do prompt for the proxy address and port, User Name, and password. Even with all this info, I still get the same error message. Any ideas?

K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 21, 2002 5:03 PM


Hi,
Yes, the proxy is likely using Microsoft's NTLM Authentication scheme, which the web control does not inherently support.
Please see the following post:
http://support.dart.com/forum.dwp?view=4874#FID4874
-ken

K M Drake
Dart Tech Support
beskra
BESKRA@LPGUYS.COM

From: Palos Hills, IL USA
Posts: 5
Member Since: 01/21/02
posted January 21, 2002 5:34 PM

Hi Ken,

Is there any work around around for this using the PowerTCP products? We have a client that just purchased our product and were looking for a solution quickly. Please let me know if there is anything we can do to get around this problem.

Thanks,

Brian.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 21, 2002 5:40 PM


Hi Brian,
Yes, if you know what request headers need to be added to your communication with the proxy, you can add them yourself.
Also, support for NTLM may be something we would consider adding through our custom solutions program. If this option interests you, please contact our sales staff.
-ken

K M Drake
Dart Tech Support 
User266

Posts: 2
Member Since: 02/01/02
posted February 1, 2002 6:40 PM

I found some interesting things trying to figure out why my customers were getting this as well. It boiled down to this.

IIS site setup with both Basic Auth and NT Auth... however, in the Basic Auth, they have a DOMAIN specified.

By removing either NT Auth or the DOMAIN in basic auth, the post would work. Unfortunately, I can't tell my customers to loosen up security... 

Here is what I'm testing (works in the lab - having a customer give a look see now)

Perform the post - if error 12032 is received, I retry the operation immediately after submitting a HEAD request with the user/pass info.

For some reason, the GET and HEAD don't show this problem - just POST.

This method established the security requirements and the POST worked - no more errors.

WEIRD! 

-Rex
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted February 4, 2002 9:17 AM


Hi Rex,
Let us know if it works for your customer.
Thanks,
-ken

K M Drake
Dart Tech Support
User266

Posts: 2
Member Since: 02/01/02
posted February 4, 2002 11:06 AM

Ken,

Received word from the end user that this workaround did in fact correct the situation.

Also, one piece of information relayed to me from the end user was that if they did not post any name/value pairs - they would not receive the error (sent a null strPostData to .Post method). 

-Rex
janitor

From: Atlanta, GA USA
Posts: 1
Member Since: 03/26/03
posted March 26, 2003 1:42 PM

I have also been experiencing this problem. Would someone who has fixed this post an example "HEAD" request. It would be greatly appreciated.

Jay
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 27, 2003 9:42 AM

Hi Jay,
Which control are you using - Http or WebAsp?
If you are using WebAsp, you will not be able to get through the NTLM authentication.
If you are using Http, you can first do either a Head or Get request to get through the NTLM, then do the Post, and it should work.
-ken
GenesisRalston

From: Omaha, NE USA
Posts: 1
Member Since: 05/28/03
posted May 28, 2003 7:43 PM

This information was very helpful. Here's what I did to get around it. Basically call the Head method with the login credentials, then Post. The Post will be logged in already at that point.

(Modify as needed)
.....

  'Use 30 second timeout
  Http1.Timeout = 30000
  
  If txtPassword.Text > "" Or txtUserName.Text > "" Then
    ' Since we are gonna login, need to process a simple head request
    ' Technically, this call passes the security check, then the
    ' post is already "logged in".
    Dim Headers As New DartStrings
    Http1.Url = txtPostPath.Text
    Http1.Head Headers, txtUserName.Text, txtPassword.Text
  End If
  
  Http1.Url = txtPostPath.Text
  
  ' Post the assembled XML string
  lblStatus.Caption = "Posting to " & txtPostPath & "..."
  Http1.Post Data, , Result, , txtUserName.Text, txtPassword.Text
  
  ' Display results
  lblStatus.Caption = "Post successful!"
  txtResults.Text = Result
  cmdPost.Enabled = True
  Exit Sub

....

bj
famtech

From: Portland, NY USA
Posts: 5
Member Since: 04/07/04
posted April 7, 2004 9:09 PM

I was getting this same Function needs to redo the request message when trying to do a PUT. I changed the Authentication on the server to Basic with no Domain. I no longer get the error message and as far as I can tell the progress and state messages seem to indicate the file goes up, but the file never appears on the server. Is there something else that can be going wrong here. I'm using same code that GenesisRalston posted above but with a PUT instead of the POST. I've also tried it with headers and without. I'm using the Http control.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 7:31 AM

What does the system administrator for the website say? Do you have any other apps that have ever successfully used PUT? If so what are they?

What I am trying to get at is, are you sure you can even do it? If so, you can use a sniffer (like ethereal) to see what the working app does.
famtech

From: Portland, NY USA
Posts: 5
Member Since: 04/07/04
posted April 8, 2004 11:22 AM

Thanks for your speedy reply,

I am basically administrating the server. I haven't used any other software that does a PUT. I'm not sure I know of one, though I could try someone elses control. I have done POSTs successfully. I don't know of any specific setting in server2003 that controls if it can recieve PUTs.

With the sniffer, you're suggesting that if i see the file information go out, then the problem must be on the server end?

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 11:47 AM

Yes, the sniffer would show whether the data went out. You could also try the WebASP control from our WebEnterprise tool. That has a Trace function that allows you to see all the data that was sent and received.
richlidd
richard@cfp-software.co.uk

From: Redruth, United Kingdom
Posts: 2
Member Since: 01/26/07
posted January 30, 2007 12:07 PM

Nothing much being posted recently regarding the 12032 error but I'm getting it with one of my customers! I've tried the Head and Get solutions and it's made no difference - or at least I've tried it to the best of my abilities! Does anyone have any info on what else to try or what worked for them to solve the problem?
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted January 31, 2007 1:28 PM

Hello,

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.

If you are still unable to make it work, then try using a protocol sniffer to see what browser does to post data to this page.

I hope this is of help.

Regards,
Amit
richlidd
richard@cfp-software.co.uk

From: Redruth, United Kingdom
Posts: 2
Member Since: 01/26/07
posted January 31, 2007 2:03 PM

I will find out if they use MS Proxy but if they do what then? I have tried Head and Get prior to the Post and neither worked. However, I may be doing it wrong! I am using VB6. Can someone post a clear and complete code sample that would show me exactly how I should use a Get, to overcome MS Proxy. Thanks in advance.
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted February 1, 2007 3:52 PM

Hello,

If this is the case, then you have to add the request headers so that communication with the proxy can take place.

Regarding the complete code sample, I would suggest you to please contact David Harry(sales@dart.com) to discuss further support options as this is going to be too complicated for the forum.

Regards,
Amit
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX