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: Cookies
User81

From: Chicago, IL USA
Posts: 26
Member Since: 04/03/01
posted April 3, 2001 12:11 PM

Is there any way to use cookies with the web tool and have a unique cookie file for each user of a web application? I run an application that allows retrieval of web pages by phone, and if someone accesses a cookie-enabled site, the cookie would be stored for everyone accessing the same site if I had cookies enabled, which would cause a privacy problem. I would like to store a unique set of cookies for each user of my system. Can this be done?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 3, 2001 12:42 PM


Sounds like it could be done. The WebServer has a Cookie Object that can do many things. If you have trouble implememting anything specific, please email support@dart.com with a complete dsecription of what you tried.

Thanks,

Tony Priest
Dart Tech Support
User200

Posts: 23
Member Since: 09/09/01
posted October 21, 2001 12:06 PM

I tried to use the reqH DartStrings to add the http cookie header as follows:

reqH.Add "Cookie: LLInProgress=%2FI0PiIyMT4hNTY%2BITc2Nz8vIA; LLCookie=%2FI0PiIyMT4hNTY%2BITc2NzxMT0V0fGlua28vbGxpZW8tQWN0dWJwUA; LLTZCookie=%3F" & vbCrLf

reqH.Add "Content-Type: multipart/form-data; boundary=" & boundary & vbCrLf
.
.
.
mvarHttp1.Post postString, reqH, result, respH
  

for my application's login cookie, but using my packet sniffer the Post does NOT include the "Cookie" name or value in the Post headers.

here is the packet capture.

POST /LivelinkOutLink/livelink.exe HTTP/1.1
Accept: */*
Content-Type: multipart/form-data; boundary=This_Is_A_Test_Boundary_Yea_Baby--
Content-Length: 1537
User-Agent: Dart Communications PowerTCP
Host: soap2k.ckmprofessional.com
Connection: Keep-Alive

--This_Is_A_Test_Boundary_Yea_Baby--
Content-Disposition: form-data; name="FILE1";
.
.
.
It got the Content-Type: header I added to reqH but not the Cookie"

I tried changing the order but the Content-Type was still the only string sent.


  
  
User200

Posts: 23
Member Since: 09/09/01
posted October 21, 2001 12:13 PM

Additional testing.

I added a bogus header "X-Xray:" as follows and it made it to the post headers but the Cookie did not...???

  reqH.Add "Content-Type: multipart/form-data; boundary=" & boundary & vbCrLf

  reqH.Add "Cookie: LLInProgress=%2FI0PiIyMT4hNTY%2BITc2Nz8vIA; LLCookie=%2FI0PiIyMT4hNTY%2BITc2NzxMT0V0fGlua28vbGxpZW8tQWN0dWJwUA; LLTZCookie=%3F" & vbCrLf

  reqH.Add "X-Xray: Does This Show?" & vbCrLf
  
  
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted October 22, 2001 11:54 AM


Hi,
Try first setting Cookies = False, which turns "auto" off, and should give you control over the cookies.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX