���
Hi Sven,
That sounds encouraging.

I am running Pharo 3.0, but I don't know how to get the release number of Zinc. Is it stored in the class comments, or can I use monticello to get the info?

I am not behind a proxy��

By the way, using the ZnClient returns about 53K of text. The first chunk of which is:

'
<!DOCTYPE html>
<html lang="en">
�� <head>
�� <meta charset="utf-8">
�� <meta content="width=300, initial-scale=1" name="viewport">
�� <meta name="description" content="Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage ��� free.">



Hi Andy,

Your URL actually does return '13' for me with Zinc following the redirect:



So the question is why doesn't it work for you ?

Which version of Pharo and/or Zinc are you using ?
Are you behind a proxy ?

Sven

On 16 Aug 2014, at 16:55, Andy Burnett <andy.burnett@knowinnovation.com> wrote:

> Hello,
>
> Google Apps Scripts allows me to create a webapp function that returns json.�� For security reasons the url to call the function returns a redirection. For example
>
> Curl https://script.google.com/macros/s/AKfycbyjVyXa9cYqYZg6kfSdiT8l6S0Q3LEzn6FvonoI1G1MzXeegrOB/exec
>
> Returns an html page with the redirection information, whereas
>
> curl -L https://script.google.com/macros/s/AKfycbyjVyXa9cYqYZg6kfSdiT8l6S0Q3LEzn6FvonoI1G1MzXeegrOB/exec
>
> Returns the json value�� (currently 13)
>
> I tried to use ZnClient to do the same thing, and I thought that ZnClient automatically followed redirections, but when I inspect the value it seems to actually return a larger html page, rather than the json.�� My Pharo code is:
>
> (ZnClient new) get: 'https://script.google.com/macros/s/AKfycbyjVyXa9cYqYZg6kfSdiT8l6S0Q3LEzn6FvonoI1G1MzXeegrOB/exec'.
>
> Do I have to set any other options?
>
> Please Note: this is my first experiment with Google App Scripts, so it is very likely that the problem is with my script, rather than Pharo. However, the script does seem to be returning the correct value in the browser, so it might be some interaction between the two.
>
> Cheers
> Andy
> ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20140816/7b068587/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-08-16 at 17.18.11.png
Type: image/png
Size: 105419 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20140816/7b068587/attachment.png>

------------------------------

Subject: Digest Footer

_______________________________________________
Pharo-users mailing list
Pharo-users@lists.pharo.org
http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org


------------------------------

End of Pharo-users Digest, Vol 16, Issue 61
*******************************************