cURL / Mailing Lists / curl-users / Single Mail

curl-users

Cookies and VMS

From: Bruce Taube <btaube_at_InfoAve.Net>
Date: Fri, 22 Mar 2002 15:21:21 -0500

Hi,

I just downloaded curl v7.9.5 for vms and am having some trouble with
cookies and the "-D" option. Curl can't seem to create the cookie. I've
tried creating the file in advance and giving it world write permission to
no avail. I'm running the following command on OpenVMS V7.2-1:

curl -L -D cookies.txt -d sysadmin_at_infoave.net -d action=login
https://www.site.com

with the "-vi" options, I get the following results (with some confidential
info removed):

* libcurl is now using a weak random seed!
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=US/ST=California/L=Redwood City/O=Company
Inc/OU=Engineering/OU=Terms of use at
* start date: 2001-07-16 00:00:00 GMT
* expire date: 2003-08-02 23:59:59 GMT
* common name: site.com (matched)
* issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server
Certification Authority
* Connected to site.com
> POST /exec/login HTTP/1.1
User-Agent: curl/7.9.5 (ALPHA-COMPAQ-VMS) libcurl 7.9.5 (OpenSSL 0.9.6c)
Host: site.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 65
Content-Type: application/x-www-form-urlencoded

cookies.txt&email=sysadmin_at_infoave.net&action=login
                                                                 HTTP/1.1
302 Found
Date: Fri, 22 Mar 2002 20:18:39 GMT
Server: Apache/1.3.12 Ben-SSL/1.41 (Unix) mod_perl/1.24_01
Set-cookie: email=sysadmin%40infoave.net; path=/; expires=Sun, 21-Mar-04
20:18:39 GMT
Set-cookie: auth=1; path=/;
Set-cookie: user=60:13c46c2ac083295a869f4704504b8808; path=/
Set-cookie:
session=suppemail%3DCustSvc_at_infoave.net|mailhost%3Dmx.infoave.net|faxbits%3D
0|uid%3D201528413|spambits%3D7|iid%3D100016035|authcnt%3D1|loggedin%3D1|viru
sbits%3D13|ispname%3DInfo+Avenue|airbits%3D0|remember%3D0|ac
countbits%3D3; path=/
P3P: CP="NON STP ADM CUR DEV OUR INT NAV ONL",
policyref="http://site.com/w3c/p3p.xml"
Location: https://site.com/exec/choose
Transfer-Encoding: chunked
Content-Type: text/plain

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved here.<P>
<HR>
<ADDRESS>Apache/1.3.12 Ben-SSL/1.41 Server at site.com Port 443</ADDRESS>
* Connection #0 left intact
* Closing connection #0

Any suggestions ?

Thanks in advance,

Bruce
Received on 2002-03-23