How can I do an Http Post in Etoys?

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

How can I do an Http Post in Etoys?

Steve Thomas
I am trying (without much success yet) to figure out how to post images to Picassa and post a Blog entry using the Google Data API

I am able to figure out how to use HTTP Get

script1
| t1 |
t1 := HTTPClient httpGet: 'http://www.google.com/search?q=squeak'.
self setCharacters: t1 asString

That seems to work, but how do I do a POST? (an example project that actually connects to blogger or picasa would be nice ;)

Thanks,
Stephen

_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: How can I do an Http Post in Etoys?

Bert Freudenberg

On 07.04.2011, at 07:36, Steve Thomas wrote:

I am trying (without much success yet) to figure out how to post images to Picassa and post a Blog entry using the Google Data API

I am able to figure out how to use HTTP Get

script1
| t1 |
t1 := HTTPClient httpGet: 'http://www.google.com/search?q=squeak'.
self setCharacters: t1 asString

That seems to work, but how do I do a POST? (an example project that actually connects to blogger or picasa would be nice ;)

POSTing isn't that hard, but it won't help you much. The major obstacle with the Google API is that you need to use https which Etoys does not support.

You would need the SqueakSSL plugin, and the SqueakSSL + WebClient packages for that. It would not be unreasonable to include these in a future Etoys release, so you're welcome to experiment ;)

- Bert -


_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: How can I do an Http Post in Etoys?

Steve Thomas
Bert,

I tried loading SqueakSSL-Core-ar.17.mcz from the SqueakSource site into Etoys, but got an exception. So given my limited time and abilities, I think I will pursue a different path for now (and when SqueakSSL  + WebClient is in Etoys I will switch to an all Squeak solution.

Thanks, also thanks for your font setting help it worked great.

Stephen

On Fri, Apr 8, 2011 at 2:20 PM, Bert Freudenberg <[hidden email]> wrote:

On 07.04.2011, at 07:36, Steve Thomas wrote:

I am trying (without much success yet) to figure out how to post images to Picassa and post a Blog entry using the Google Data API

I am able to figure out how to use HTTP Get

script1
| t1 |
t1 := HTTPClient httpGet: 'http://www.google.com/search?q=squeak'.
self setCharacters: t1 asString

That seems to work, but how do I do a POST? (an example project that actually connects to blogger or picasa would be nice ;)

POSTing isn't that hard, but it won't help you much. The major obstacle with the Google API is that you need to use https which Etoys does not support.

You would need the SqueakSSL plugin, and the SqueakSSL + WebClient packages for that. It would not be unreasonable to include these in a future Etoys release, so you're welcome to experiment ;)

- Bert -


_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland



_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland