Url / HTTPSocket with https://

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

Url / HTTPSocket with https://

laurent laffont
Hi,

(Url absoluteFromText: 'https://www.google.com') retrieveContents

or 

HTTPSocket httpGet:'https://www.google.com'.

fail because they don't like https://. How can I get content on https:// ?


Laurent Laffont - @lolgzs

Pharo Smalltalk Screencasts: http://www.pharocasts.com/
Blog: http://magaloma.blogspot.com/
Reply | Threaded
Open this post in threaded view
|

Re: Url / HTTPSocket with https://

Sven Van Caekenberghe

On 02 Mar 2011, at 08:16, laurent laffont wrote:

> Hi,
>
> (Url absoluteFromText: 'https://www.google.com') retrieveContents
>
> or
>
> HTTPSocket httpGet:'https://www.google.com'.
>
> fail because they don't like https://. How can I get content on https:// ?
>
>
> Laurent Laffont - @lolgzs

You can't. This is a problem.

There is http://www.squeaksource.com/SqueakSSL.html

but it is not so Pharo friendly as well as incomplete (depending on your platform, worst for Mac OS X, less for Linux, best for Windows).

Sven


Reply | Threaded
Open this post in threaded view
|

Re: Url / HTTPSocket with https://

laurent laffont
On Wed, Mar 2, 2011 at 8:52 AM, Sven Van Caekenberghe <[hidden email]> wrote:

On 02 Mar 2011, at 08:16, laurent laffont wrote:

> Hi,
>
> (Url absoluteFromText: 'https://www.google.com') retrieveContents
>
> or
>
> HTTPSocket httpGet:'https://www.google.com'.
>
> fail because they don't like https://. How can I get content on https:// ?
>
>
> Laurent Laffont - @lolgzs

You can't. This is a problem.

There is http://www.squeaksource.com/SqueakSSL.html

but it is not so Pharo friendly as well as incomplete (depending on your platform, worst for Mac OS X, less for Linux, best for Windows).


aaaaaaaarrrrrrgggggg...... 

Laurent



 

Sven



Reply | Threaded
Open this post in threaded view
|

Re: Url / HTTPSocket with https://

EstebanLM
you can avoid this problem using stunnel.
not the best of the world, but at least is something :)

best,
Esteban


El 02/03/2011, a las 5:20a.m., laurent laffont escribió:

On Wed, Mar 2, 2011 at 8:52 AM, Sven Van Caekenberghe <[hidden email]> wrote:

On 02 Mar 2011, at 08:16, laurent laffont wrote:

> Hi,
>
> (Url absoluteFromText: 'https://www.google.com') retrieveContents
>
> or
>
> HTTPSocket httpGet:'https://www.google.com'.
>
> fail because they don't like https://. How can I get content on https:// ?
>
>
> Laurent Laffont - @lolgzs

You can't. This is a problem.

There is http://www.squeaksource.com/SqueakSSL.html

but it is not so Pharo friendly as well as incomplete (depending on your platform, worst for Mac OS X, less for Linux, best for Windows).


aaaaaaaarrrrrrgggggg...... 

Laurent



 

Sven




Reply | Threaded
Open this post in threaded view
|

Re: Url / HTTPSocket with https://

laurent laffont
On Wed, Mar 2, 2011 at 10:38 AM, Esteban Lorenzano <[hidden email]> wrote:
you can avoid this problem using stunnel.
not the best of the world, but at least is something :)


Indeed I'm preparing a TDD / Picasa srceencast  so I want easy to understand stuff......

Laurent


 
best,
Esteban


El 02/03/2011, a las 5:20a.m., laurent laffont escribió:

On Wed, Mar 2, 2011 at 8:52 AM, Sven Van Caekenberghe <[hidden email]> wrote:

On 02 Mar 2011, at 08:16, laurent laffont wrote:

> Hi,
>
> (Url absoluteFromText: 'https://www.google.com') retrieveContents
>
> or
>
> HTTPSocket httpGet:'https://www.google.com'.
>
> fail because they don't like https://. How can I get content on https:// ?
>
>
> Laurent Laffont - @lolgzs

You can't. This is a problem.

There is http://www.squeaksource.com/SqueakSSL.html

but it is not so Pharo friendly as well as incomplete (depending on your platform, worst for Mac OS X, less for Linux, best for Windows).


aaaaaaaarrrrrrgggggg...... 

Laurent



 

Sven





Reply | Threaded
Open this post in threaded view
|

Re: Url / HTTPSocket with https://

Johan Brichau-2
In reply to this post by laurent laffont
I am not certain if it works, but the Cryptography package has an implementation for an https client: http://www.squeaksource.com/Cryptography.html

On 02 Mar 2011, at 08:16, laurent laffont wrote:

> Hi,
>
> (Url absoluteFromText: 'https://www.google.com') retrieveContents
>
> or
>
> HTTPSocket httpGet:'https://www.google.com'.
>
> fail because they don't like https://. How can I get content on https:// ?
>
>
> Laurent Laffont - @lolgzs
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/


Reply | Threaded
Open this post in threaded view
|

Re: Url / HTTPSocket with https://

laurent laffont

On Wed, Mar 2, 2011 at 11:15 AM, Johan Brichau <[hidden email]> wrote:
I am not certain if it works, but the Cryptography package has an implementation for an https client: http://www.squeaksource.com/Cryptography.html


Yes I've just found this in the SSL package (HttpsSocket and HttpsUrl) - but actually I haven't been able to make it work :(

Laurent


 
On 02 Mar 2011, at 08:16, laurent laffont wrote:

> Hi,
>
> (Url absoluteFromText: 'https://www.google.com') retrieveContents
>
> or
>
> HTTPSocket httpGet:'https://www.google.com'.
>
> fail because they don't like https://. How can I get content on https:// ?
>
>
> Laurent Laffont - @lolgzs
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/