cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Question regarding using the ssl sessionid usage

From: Niranjan Ramakrishnan <willowbreaker_at_hotmail.com>
Date: Thu, 2 Apr 2009 13:48:45 -0700

So if I understand this right ,
1. There is no sessionid reuse when I invoke "curl -k https://URL-PATH " twice ( separate invocations ).

2. When I invoke curl -k https://URL-PATH curl -k https://URL-PATH curl -k https://URL-PATH , all three requests happen within the same TCP connection and so the question of sessionid reuse does not arise.

In which case , when would I use the -no-sessionid flag ? What purpose exactly does this flag serve ?

> Date: Thu, 2 Apr 2009 08:49:55 +0200
> From: daniel_at_haxx.se
> To: curl-users_at_cool.haxx.se
> Subject: Re: Question regarding using the ssl sessionid usage
>
> On Wed, 1 Apr 2009, Ray Pekowski wrote:
>
> > OK, I can't claim to know all the details of the code, but here is what I
> > think you are missing. The curl command line tool allows you to specify
> > multiple URLs on the same command line. The only way you could hope to
> > share SSL sessions is via that mechanism. SSL sessions will not be shared
> > across separate command line invocations. I think the issue about closing
> > the connection is an implementation detail that has to do with multiple URLs
> > on the same command line. Maybe Daniel can clarify.
>
> Ray's explanation above is exactly the case.
>
> The tool cannot keep anything cached or alive between separate invokes.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html

_________________________________________________________________
Rediscover HotmailŪ: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-02