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: POST not working correctly
User916

Posts: 4
Member Since: 02/06/01
posted February 6, 2001 3:57 PM

I'm trying to post data to a server and it doesn't appear to be working correctly. Here's my code:

http.Timeout = 0
http.URL = URL
http.Post msPostData, , msResults

It executes, but I'm confused about what is going on. Using NetMon I see the post data is the html of the page the server sends back! There isn't any sign of the desired post data. This is really bizarre - I can't find any errors in my code. Please help!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 6, 2001 4:04 PM


Does the sample app work properly?

Thanks,

Tony Priest
Dart Tech Support
User916

Posts: 4
Member Since: 02/06/01
posted February 6, 2001 5:52 PM

Yes it does. I can't figure out what's going on. Putting my post data & url in the sample app posts correctly, but in my app it posts an HTML document! The HTTP settings are identical in the two project - though I didn't have a reference to Dart TCP/UCP etc. (I do now). Take a look at the actual post captured with NetMon:

POST /login.asp HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
Content-Length: 7675
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Host: www.testserver123.com
Connection: Keep-Alive
Cookie: ilcuid=user; ASPSESSIONIDQQQQQRGT=LPHMKMODCBAMHFFMLDCBIJMJ



<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
...

The post data should be 'login=user&password=pass'. I've tried just about every variation of blocking/non-blocking, user-agents, etc. but I don't understand what the problem is?!?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 6, 2001 7:34 PM


You state that our sample works. If that's the case then my advice would be to do it the way we do in the sample.

If you are unable to figure out what's going on, we offer consulting services and support programs that would allow me to look at your code. Please contact sales@dart.com for info.

Thanks,

Tony
User916

Posts: 4
Member Since: 02/06/01
posted February 12, 2001 2:45 AM

Well, I think the problem is caused when the web tool crashes the IDE. I got it to work at first - after a reboot. But after the IDE crashes I can't get it to work with that project - it posts an HTML page, not the intended data. However, the sample works (I haven't crashed THAT yet). It sure doesn't appear anything is wrong with my code - if I copy the sample code into my project (and everything else is identical - references, components, etc.), it posts an HTML page. So, this leads my to believe that a crash causes some problem in the underlying Win32 Internet calls (which I believe your control uses) - an Internet handle hanging around, some data buffer with the HTML file, ...? Anyhow if you have a solution other than rebooting my computer after every crash. I'd also like to say that this sure is a dangerous (very easy to cause crashes) control for use with VB.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 12, 2001 9:01 AM


Please tell me exactly how to duplicate this problem using our sample. At that point I can look into it further.

Thanks,

Tony Priest
Dart Tech Support
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX