
SetCookie: Tell me I'm just Dense!
This is driving me up a wall!
I need to know how to set a Non-Persistent cookie with the Winsock
Control in VB6. I can't use InternetSetCookie because it runs through
IE, several users can't use IE due to Security Settings so I have to use
the Winsock Control.
I can't use the Inet Control because it pukes on some of the Perl
Scripts I'm pulling (Error: Type Mismatch).
The only alternative would seem to be using the Winsock Control by
sending a "SetCookie:" header to the HTTP Server (Apache). I can't seem
to get this right!
Here's the servers response after sending the login script, it's just
the header part of the page:
HTTP/1.1 200 OK
Date: Fri, 21 Jan 2000 07:04:28 GMT
Server: Apache/1.3.4 (Unix)
Cache-Control: private
Set-Cookie:
NAME=33T2HIGOV0G9OH5C9RL2V7QSTCKPG8VM9IDIRVP7PKBVQ9UD2RVIFJONVSHSQ6UM0;
Path=/; DOMAIN=www.foobar.com;
Connection: close
If I return the a header with the text from "Set-Cookie:" down, I get an
error 400 "Bad Request, I think".
Any help would be greatly appreciated! Thanks!