cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problems with curl tool

From: <richard.moser_at_pncbank.com>
Date: Wed, 12 Mar 2003 12:59:42 -0500

In my situation I have to visit the https main page to set a couple cookies
in the headers. Next I post by credentials to a jsp script but I have to
use the CURLOPT_REFERER which carries some information with it.

Check in the headers for the session key. I doubt that you have to make it
or point to it but rather enable cookies and use the headers themselves or
so it is in my case. You might see something in the headers like
"Set-Cookie: sessionID=whobunchofstuffinhere...

                                                                                                                                                
                      curl-library-admin_at_lists.sour
                      ceforge.net To: <curl-library_at_lists.sourceforge.net>
                                                            cc:
                      03/12/2003 11:11 AM Subject: RE: Problems with curl tool
                      Please respond to
                      curl-library
                                                                                                                                                
                                                                                                                                                

Ok.
After you write the option with various "curl_easy_setopt" calls, I think
you call the "curl_easy_perform" function to connect to a secure server.

I think that this is the first step for SSL Handshake (ie the way by which
I can obtain the server certificate).
My question now is : how I can proceed for next steps in SSL handshaking?
(ie how I can make a "session key" and how I can select a client
certificate for enable also client certificate?)

I'm right ?

Thanks

Pompea

-----Original Message-----
From: richard.moser_at_pncbank.com [mailto:richard.moser_at_pncbank.com]
Sent: mercoledì 12 marzo 2003 16.03
To: curl-library_at_lists.sourceforge.net
Subject: Re: Problems with curl tool

I have written a program accessing a site over SSL where I need to accept
certs ("global certs") from the connection in the same maner. In order to
do this I have to set a few things in libcurl which I will list bellow.

    /* Use this for Debugging
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
    */

    curl_easy_setopt(curl, CURLOPT_HEADER, 1);

    /* Change this to local proxy setting is needed.
    curl_easy_setopt(curl, CURLOPT_PROXY, "yourproxyhere:8080");
    */

    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);

   curl_easy_setopt(curl, CURLOPT_REFERER, "referer_page_here");

I have to make sure I accept cookies and read the headers of each page to
progress past authentication.

Hope this helps

Rick

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
Received on 2003-03-12