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: VB cookie samle code
User588

Posts: 3
Member Since: 10/04/00
posted October 4, 2000 9:30 AM

Hi!
Is it possible to get your VB sample code using Web Tool for HTTPS using cookies???

Regards
Martin Pedersen, Tryg-Baltica, Denmark
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 4, 2000 9:34 AM


It uses the cookie object but if you want it, it's in the WebServer Tool.

User585

Posts: 1
Member Since: 08/10/01
posted August 10, 2001 10:28 PM

On the client side, if I'm creating a form and creating a browser on the form (using the Dart HTTP activex control), can I respond to server requests for a cookie? If so, how? 
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted August 13, 2001 9:59 AM


Hi,
You can add a cookie to your Request by first setting the Cookies Property = False, and then adding a Cookie Header:
Dim ReqHeaders As New DartString
ReqHeaders.Add "Cookie: Your cookie"
Http.GetEx ReqHeaders, Content

-ken

K M Drake
Dart Tech Support
User200

Posts: 23
Member Since: 09/09/01
posted November 18, 2001 4:13 PM

I am NOT seeing the cookie set in the POST request. I modified the POST example for the web tool and added the following lines.

Http1.Cookies = True

reqH.Add "Cookie: LLInProgress=%2FI0PiIyMT4hNTY%2BITc2Nz8vIA; LLCookie=%2FI0PiIyMT4hNTY%2BITc2NzNZXkNIQU8vbGxpZW8tQWN0dWJwUA; LLTZCookie=0" & vbCrLf

however the POST shows no Cookie header from my packet sniffer as you can see below:

POST /LivelinkRemote9/livelink.exe HTTP/1.1
Accept: */*
Content-Type: multipart/form-data; boundary=-----------------------------7d02e53b03d8
Content-Length: 2029
User-Agent: Dart Communications PowerTCP
Host: soap2k.morningstarsystems.com
Connection: Keep-Alive

-----------------------------7d02e53b03d8
...


  
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted November 19, 2001 8:41 AM


Hi,
Try setting Cookies = False, to stop automatic cookie handling, and give yourself control over the cookies to be added.
-ken

K M Drake
Dart Tech Support
User200

Posts: 23
Member Since: 09/09/01
posted November 19, 2001 9:39 AM

Thanks, It would help if I actually READ the post where it said that...brain dead...sorry.
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX