Hi all. I'm trying to use the google maps web API from squeak, but I'm stuck at square one (as usual).
I can't seem to get https working properly to access a google map server.
The closest I have gotten is using the HttpsSocket class and utilities found in Cobalt (squeak 3.8) but that doesn't quite work either.
a:= HttpsUrl absoluteFromText: 'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'. Transcript show: a retrieveContents contents.
It works in a browser, but not with any version of squeak I have tried using any code I have tried.
The URL I'm trying to access is:
'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'
Suggestions on how to get it through squeak? I'll take any version, any flavor at this point.
Caveat: I just installed Mac OS X Lion, which may be complicating things somehow.
Thanks.
Lawson
Works fine with WebClient+SqueakSSL:
resp := WebClient httpGet: 'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'.
resp content.
'{ "html_attributions" : [], "results" : [ { "geometry" : { "location" : { "lat" : 52.3311970, "lng" : 5.540718099999999 }, "viewport" : { "northeast" : { "lat" : 52.44016020, "lng" : 5.796836900000001 }, "southwest" : { "lat" : 52.22196470, "lng" : 5.28459930 } } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png", "id" : "b97e941c7f1bdc5ccd568618e9f772d9a68c83e9", "name" : "Zeewolde", "reference" : "CnRpAAAAXCmbbBfcBJnImltpp3rbQ5EBzpAuR7oVx5AypvkGt4Dt12LSptveOj9l0jWupkZVz2nqdZpXaDpuFB1F3VjfC4kM05YUmt0pD254R5dfjC1T3kHJNXkK8G5jHjC4tcakRmMw_yhzIEarGrbctLPZ_RIQXsIeW42OsUvgM0c1tvfocRoUuQHjM73xY0PTtRch_kxlYKgMD0Y", "types" : [ "locality", "political" ] } ], "status" : "OK" } ' Cheers, - Andreas
On 7/22/2011 20:12, Lawson English wrote:
Hi all. I'm trying to use the google maps web API from squeak, but I'm stuck at square one (as usual).
I can't seem to get https working properly to access a google map server.
The closest I have gotten is using the HttpsSocket class and utilities found in Cobalt (squeak 3.8) but that doesn't quite work either.
a:= HttpsUrl absoluteFromText: 'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'.
Transcript show: a retrieveContents contents.
It works in a browser, but not with any version of squeak I have tried using any code I have tried.
The URL I'm trying to access is:
'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'
Suggestions on how to get it through squeak? I'll take any version, any flavor at this point.
Caveat: I just installed Mac OS X Lion, which may be complicating things somehow.
Thanks.
Lawson
I installed the latest WebClient, the latest SqueakSSL & plugin into a fresh Squeak all-in-one 4.2
I get error: primitiveSSLCreate failed when I run your code.
I put a copy of the SqueakSSL.dll plugin into the top level where other .dll files are, and then when it didn't work, just to make sure, I put a copy into the Contents directory of the .app folder.
I still get error: primitiveSSLCreate failed.
I'm running Mac OS X Lion.
Someone has tried the same thing on a Mac running Leopard (both PPC AND Intel) and got the same error: primitiveSSLCreate failed.
Lawson
On 7/22/11 11:50 AM, Andreas Raab wrote:
Works fine with WebClient+SqueakSSL:
resp := WebClient httpGet: 'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'.
resp content.
'{ "html_attributions" : [], "results" : [ { "geometry" : { "location" : { "lat" : 52.3311970, "lng" : 5.540718099999999 }, "viewport" : { "northeast" : { "lat" : 52.44016020, "lng" : 5.796836900000001 }, "southwest" : { "lat" : 52.22196470, "lng" : 5.28459930 } } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png", "id" : "b97e941c7f1bdc5ccd568618e9f772d9a68c83e9", "name" : "Zeewolde", "reference" : "CnRpAAAAXCmbbBfcBJnImltpp3rbQ5EBzpAuR7oVx5AypvkGt4Dt12LSptveOj9l0jWupkZVz2nqdZpXaDpuFB1F3VjfC4kM05YUmt0pD254R5dfjC1T3kHJNXkK8G5jHjC4tcakRmMw_yhzIEarGrbctLPZ_RIQXsIeW42OsUvgM0c1tvfocRoUuQHjM73xY0PTtRch_kxlYKgMD0Y", "types" : [ "locality", "political" ] } ], "status" : "OK" } ' Cheers,
- Andreas
On 7/22/2011 20:12, Lawson English wrote:
Hi all. I'm trying to use the google maps web API from squeak, but I'm stuck at square one (as usual).
I can't seem to get https working properly to access a google map server.
The closest I have gotten is using the HttpsSocket class and utilities found in Cobalt (squeak 3.8) but that doesn't quite work either.
a:= HttpsUrl absoluteFromText: 'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'.
Transcript show: a retrieveContents contents.
It works in a browser, but not with any version of squeak I have tried using any code I have tried.
The URL I'm trying to access is:
'https://maps.googleapis.com/maps/api/place/search/json?location=52.36973,5.3...'
Suggestions on how to get it through squeak? I'll take any version, any flavor at this point.
Caveat: I just installed Mac OS X Lion, which may be complicating things somehow.
Thanks.
Lawson
On 7/22/11 12:49 PM, Lawson English wrote:
I installed the latest WebClient, the latest SqueakSSL & plugin into a fresh Squeak all-in-one 4.2
I get error: primitiveSSLCreate failed when I run your code.
I put a copy of the SqueakSSL.dll plugin into the top level where other .dll files are, and then when it didn't work, just to make sure, I put a copy into the Contents directory of the .app folder.
Ack, I meant .bundle .dll obviously doesn't work but .bundle doesn't either.
Lawson
On 7/22/2011 21:55, Lawson English wrote:
On 7/22/11 12:49 PM, Lawson English wrote:
I installed the latest WebClient, the latest SqueakSSL & plugin into a fresh Squeak all-in-one 4.2
I get error: primitiveSSLCreate failed when I run your code.
I put a copy of the SqueakSSL.dll plugin into the top level where other .dll files are, and then when it didn't work, just to make sure, I put a copy into the Contents directory of the .app folder.
Ack, I meant .bundle .dll obviously doesn't work but .bundle doesn't either.
This could of course be an issue with Lion. Do you have access to an earlier version of OSX to test against? Also, what VM are you using? It is possible that there might be a difference between Cog/NonCog VMs.
Cheers, - Andreas
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
Hope it helps Bye Enrico
[1] http://forum.world.st/Anyone-get-the-SqueakSSL-plugin-to-work-under-Mac-OS-X...
On Sat, Jul 23, 2011 at 11:00, Andreas Raab andreas.raab@gmx.de wrote:
On 7/22/2011 21:55, Lawson English wrote:
On 7/22/11 12:49 PM, Lawson English wrote:
I installed the latest WebClient, the latest SqueakSSL & plugin into a fresh Squeak all-in-one 4.2
I get error: primitiveSSLCreate failed when I run your code.
I put a copy of the SqueakSSL.dll plugin into the top level where other .dll files are, and then when it didn't work, just to make sure, I put a copy into the Contents directory of the .app folder.
Ack, I meant .bundle .dll obviously doesn't work but .bundle doesn't either.
This could of course be an issue with Lion. Do you have access to an earlier version of OSX to test against? Also, what VM are you using? It is possible that there might be a difference between Cog/NonCog VMs.
Cheers, - Andreas
On 8/16/2011 0:06, Enrico Spinielli wrote:
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
I just committed a change to signal a more explicit error. With the updated SqueakSSL-Core package you should be able to do, e.g.,
[WebClient httpGet: 'https://invalid.ssl.domain'] on: SqueakSSLCertificateError do:[:ex| ex resume]. "ignore all cert issues"
Cheers, - Andreas
Andreas, I do not see anything new in SqueakSSL (or WebClient) and updating both to latest available versions I do not see SqueakSSLCertificateError...
I checked both in my image and on the relevant project pages on squeaksource.com
Did you push the update you mentioned below somewhere else?
Thanks in advance for your reply (and for the example code below) Bye Enrico
On Tue, Aug 16, 2011 at 19:19, Andreas Raab andreas.raab@gmx.de wrote:
On 8/16/2011 0:06, Enrico Spinielli wrote:
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
I just committed a change to signal a more explicit error. With the updated SqueakSSL-Core package you should be able to do, e.g.,
[WebClient httpGet: 'https://invalid.ssl.domain'] on: SqueakSSLCertificateError do:[:ex| ex resume]. "ignore all cert issues"
Cheers, - Andreas
On 8/17/2011 8:25, Enrico Spinielli wrote:
Andreas, I do not see anything new in SqueakSSL (or WebClient) and updating both to latest available versions I do not see SqueakSSLCertificateError...
I checked both in my image and on the relevant project pages on squeaksource.com
Looks like yet another Squeaksource failure. I uploaded the packages again.
Cheers, - Andreas
Did you push the update you mentioned below somewhere else?
Thanks in advance for your reply (and for the example code below) Bye Enrico
On Tue, Aug 16, 2011 at 19:19, Andreas Raabandreas.raab@gmx.de wrote:
On 8/16/2011 0:06, Enrico Spinielli wrote:
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
I just committed a change to signal a more explicit error. With the updated SqueakSSL-Core package you should be able to do, e.g.,
[WebClient httpGet: 'https://invalid.ssl.domain'] on: SqueakSSLCertificateError do:[:ex| ex resume]. "ignore all cert issues"
Cheers,
- Andreas
At least from the web interface, I do NOT see them neither for http://squeaksource.com/WebClient nor for http://www.squeaksource.com/SqueakSSL
weird...or I do something wrong...
Bye Enrico
On Wed, Aug 17, 2011 at 09:17, Andreas Raab andreas.raab@gmx.de wrote:
On 8/17/2011 8:25, Enrico Spinielli wrote:
Andreas, I do not see anything new in SqueakSSL (or WebClient) and updating both to latest available versions I do not see SqueakSSLCertificateError...
I checked both in my image and on the relevant project pages on squeaksource.com
Looks like yet another Squeaksource failure. I uploaded the packages again.
Cheers, - Andreas
Did you push the update you mentioned below somewhere else?
Thanks in advance for your reply (and for the example code below) Bye Enrico
On Tue, Aug 16, 2011 at 19:19, Andreas Raabandreas.raab@gmx.de wrote:
On 8/16/2011 0:06, Enrico Spinielli wrote:
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
I just committed a change to signal a more explicit error. With the updated SqueakSSL-Core package you should be able to do, e.g.,
[WebClient httpGet: 'https://invalid.ssl.domain'] on: SqueakSSLCertificateError do:[:ex| ex resume]. "ignore all cert issues"
Cheers, - Andreas
On 8/17/2011 11:23, Enrico Spinielli wrote:
At least from the web interface, I do NOT see them neither for http://squeaksource.com/WebClient nor for http://www.squeaksource.com/SqueakSSL
Did it again, verified that it's there (at the time of this writing). YMMV, depending on todays uptime of Squeaksource.
Cheers, - Andreas
weird...or I do something wrong...
Bye Enrico
On Wed, Aug 17, 2011 at 09:17, Andreas Raabandreas.raab@gmx.de wrote:
On 8/17/2011 8:25, Enrico Spinielli wrote:
Andreas, I do not see anything new in SqueakSSL (or WebClient) and updating both to latest available versions I do not see SqueakSSLCertificateError...
I checked both in my image and on the relevant project pages on squeaksource.com
Looks like yet another Squeaksource failure. I uploaded the packages again.
Cheers,
- Andreas
Did you push the update you mentioned below somewhere else?
Thanks in advance for your reply (and for the example code below) Bye Enrico
On Tue, Aug 16, 2011 at 19:19, Andreas Raabandreas.raab@gmx.de wrote:
On 8/16/2011 0:06, Enrico Spinielli wrote:
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
I just committed a change to signal a more explicit error. With the updated SqueakSSL-Core package you should be able to do, e.g.,
[WebClient httpGet: 'https://invalid.ssl.domain'] on: SqueakSSLCertificateError do:[:ex| ex resume]. "ignore all cert issues"
Cheers,
- Andreas
Loaded and tried you code: all works fine! Thanks Bye Enrico
On Thu, Aug 18, 2011 at 13:36, Andreas Raab andreas.raab@gmx.de wrote:
On 8/17/2011 11:23, Enrico Spinielli wrote:
At least from the web interface, I do NOT see them neither for http://squeaksource.com/WebClient nor for http://www.squeaksource.com/SqueakSSL
Did it again, verified that it's there (at the time of this writing). YMMV, depending on todays uptime of Squeaksource.
Cheers, - Andreas
weird...or I do something wrong...
Bye Enrico
On Wed, Aug 17, 2011 at 09:17, Andreas Raabandreas.raab@gmx.de wrote:
On 8/17/2011 8:25, Enrico Spinielli wrote:
Andreas, I do not see anything new in SqueakSSL (or WebClient) and updating both to latest available versions I do not see SqueakSSLCertificateError...
I checked both in my image and on the relevant project pages on squeaksource.com
Looks like yet another Squeaksource failure. I uploaded the packages again.
Cheers, - Andreas
Did you push the update you mentioned below somewhere else?
Thanks in advance for your reply (and for the example code below) Bye Enrico
On Tue, Aug 16, 2011 at 19:19, Andreas Raabandreas.raab@gmx.de wrote:
On 8/16/2011 0:06, Enrico Spinielli wrote:
On OS X (Snow Leopard) taking the bundle from SqueakSSL google code page resolves the primitiveSSLCreate, but the issue described in [1] related to certificate validation remains, i.e. there are no hooks in WebClient to set failure mask...you have to change WebClient (Andreas mentioned in [1] the possibility to use an error handler but I do not know how to proceed...).
I just committed a change to signal a more explicit error. With the updated SqueakSSL-Core package you should be able to do, e.g.,
[WebClient httpGet: 'https://invalid.ssl.domain'] on: SqueakSSLCertificateError do:[:ex| ex resume]. "ignore all cert issues"
Cheers, - Andreas
squeak-dev@lists.squeakfoundation.org