[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call WebApi requiring API token authorisation


Le dim. 1 févr. 2026 à 04:24, KKing <kicking177@xxxxxxxxx> a écrit :
>
> Hi Olivier/Lee,
>
> Thank you for your suggestions ...
>
> I do have
>      hClientGet.Get(aHeaderOption, strMyFile)
> working, and the file referenced by strMyFile has the expected response
> content.
> and hClientGet.Status is fine
>
> But
>      sBuffer = Read #hClientGet, Lof(hClientGet)
> returns an empty string. And ideally I'd like the content returned
> inline not in a file.
>
> Suggestions?

Use the peek() function

dim S as string

hCLient.ASync = False

hClient.get(...

S = hClient.Peek()

>
> K
>
>


-- 
Fabien Bodard


References:
Re: call WebApi requiring API token authorisationKKing <kicking177@xxxxxxxxx>