Duh. Yes, there should be not colon at the end of the header name.
> On 27 Aug 2018, at 21:12, Norbert Hartl <norb...@hartl.name> 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 <andy.burn...@knowinnovation.com>:
>
>> 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 := ZnClient new.
>> tmp1 headerAt: 'Authorization:' put: 'Bearer 12345abc'.
>> tmp1 url: 'https://app.asana.com/api/1.0/users/me'.
>> tmp1 get.
>>
>> Results in an authorisation error.
>>
>> I haven't tried using Zinc to access authenticated sites before, what am I
>> doing wrong?
>>
>> Cheers
>> Andy