[squeak-dev] CurlPlugin and cookies

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] CurlPlugin and cookies

Simon Kirk-4
Hi all.

Has anybody had any joy with CurlPlugin with respect to getting it to  
handle cookies? As far as I can tell no matter what runes I throw at  
it it's steadfastly refusing to read the cookies coming in the server  
response I'm getting, or alternatively steadfastly refusing to send  
those cookies onwards to the next request.

All pointers more than gratefully received.

Cheers,
Simon


Consider your responsibility to the environment - think before you print!

******************************************************************************************************************************************
This email is from Pinesoft Limited. Its contents are confidential to the intended recipient(s) at the email address(es) to which it has been addressed. It may not be disclosed to or used by anyone other than the addressee(s), nor may it be copied in anyway. If received in error, please contact the sender, then delete it from your system. Although this email and attachments are believed to be free of virus, or any other defect which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Pinesoft for any loss or damage arising in any way from receipt or use thereof. *******************************************************************************************************************************************


Pinesoft Limited are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] CurlPlugin and cookies

Giovanni Corriga
Simon Kirk ha scritto:

> Hi all.
>
> Has anybody had any joy with CurlPlugin with respect to getting it to
> handle cookies? As far as I can tell no matter what runes I throw at it
> it's steadfastly refusing to read the cookies coming in the server
> response I'm getting, or alternatively steadfastly refusing to send
> those cookies onwards to the next request.
>
> All pointers more than gratefully received.
>

Simon,

have you tried sending something like this

        aCurl cookieFile: ''

before sending the first request? According to the libCurl documentation
(and a quick peruse of the CurlPlugin sources) that should enable cookie
for the full session ( see
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIEFILE ).

        Giovanni (insomniac)