Url / HTTPSocket with https://

classic Classic list List threaded Threaded
7 messages Options
laurent laffont laurent laffont
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Url / HTTPSocket with https://

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/
Sven Van Caekenberghe Sven Van Caekenberghe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Url / HTTPSocket with https://


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


laurent laffont laurent laffont
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Url / HTTPSocket with https://

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



EstebanLM EstebanLM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Url / HTTPSocket with https://

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




laurent laffont laurent laffont
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Url / HTTPSocket with https://

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





Johan Brichau-2 Johan Brichau-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Url / HTTPSocket with https://

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/


laurent laffont laurent laffont
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Url / HTTPSocket with https://


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/



Loading...