Re: [Pharo-users] Using ZnEasy getPng: with an octet-stream

2018-08-27 Thread Sven Van Caekenberghe
> On 28 Aug 2018, at 00:41, Andy Burnett > wrote: > > Next step of my Asana adventure. > > In a browser > > https://s3.amazonaws.com/profile_photos/206785263586755.0mU1QMOxVZLp3WiRWhWX_128x128.png > > downloads a png. > > When I try ZnEasy getPng: with the same address, I get a walkback s

[Pharo-users] Using ZnEasy getPng: with an octet-stream

2018-08-27 Thread Andy Burnett
Next step of my Asana adventure. In a browser https://s3.amazonaws.com/profile_photos/206785263586755.0mU1QMOxVZLp3WiRWhWX_128x128.png downloads a png. When I try ZnEasy getPng: with the same address, I get a walkback saying expected image/png actual application/octet-stream. Is it possible to

Re: [Pharo-users] Adding an Authorization Bearer header via Zinc

2018-08-27 Thread Andy Burnett
Norbert said <<< You have a colon in the name of the header. I?m not sure zinc removes it. It could be a problem. >>> Ah, spot on. Apparently, we need the colon for Curl, but not for Pharo. Also, response setAuthorization turned out to be the best approach. For anyone searching this list, in the

Re: [Pharo-users] Adding an Authorization Bearer header via Zinc

2018-08-27 Thread Sven Van Caekenberghe
Duh. Yes, there should be not colon at the end of the header name. > On 27 Aug 2018, at 21:12, Norbert Hartl wrote: > > You have a colon in the name of the header. I‘m not sure zinc removes it. It > could be a problem. > > Norbert > > Am 27.08.2018 um 20:23 schrieb Andy Burnett : > >> I am b

Re: [Pharo-users] Adding an Authorization Bearer header via Zinc

2018-08-27 Thread Norbert Hartl
You have a colon in the name of the header. I‘m not sure zinc removes it. It could be a problem. Norbert > Am 27.08.2018 um 20:23 schrieb Andy Burnett : > > I am building some pharo scripts to edit tasks in the Asana.com system. > > I have generated a Personal Access Token, and the terminal co

Re: [Pharo-users] Adding an Authorization Bearer header via Zinc

2018-08-27 Thread Sven Van Caekenberghe
Have a look at ZnClient>>#username:password: ZnClient>>#setBasicAuthenticationUsername:password: ZnRequest>>#setBasicAuthenticationUsername:password: ZnRequest>>#setAuthorization: and their senders. This should get you started. It is possible/probable that you have to set the #url: before you m

Re: [Pharo-users] Adding an Authorization Bearer header via Zinc

2018-08-27 Thread Ben Coman
On Tue, 28 Aug 2018 at 02:25, Andy Burnett wrote: > I am building some pharo scripts to edit tasks in the Asana.com system. > > I have generated a Personal Access Token, and the terminal command of: > > curl -H "Authorization: Bearer 12345abc" > https://app.asana.com/api/1.0/users/me > > Returns

[Pharo-users] Adding an Authorization Bearer header via Zinc

2018-08-27 Thread Andy Burnett
I am building some pharo scripts to edit tasks in the Asana.com system. I have generated a Personal Access Token, and the terminal command of: curl -H "Authorization: Bearer 12345abc" https://app.asana.com/api/1.0/users/me Returns 200/ok, and the right data. However, the pharo commands tmp1 :=

Re: [Pharo-users] Jupyter notebooks / Dynabook / JupyterTalk

2018-08-27 Thread H. Hirzel
Actually there is a probably a configuration file, but not in the place where I checked, I assume. I have Ubuntu or Ubuntu based test installations in partitions sda6,7,8,9,10. I can not recall in which partition in actually happened. However I found out about the command [1] jupyter --path