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

Re: Stream error in framing layer


Le 05/08/2024 à 04:58, BB a écrit :

On 4/8/24 4:51 am, Benoît Minisini wrote:
Le 02/08/2024 à 14:18, BB a écrit :
I use a JSON download via httpclient to retrieve some live data. Recently I have been getting a consistent failure with the heading "error". This error, according to the internet pundits is something to do with the server doing http2 badly.

Their answer is to force curl (via httpclient) to use headers to force the server to reply in http1.1

It seems that I need to set some header to use the value "CURL_HTTP_VERSION_1_1" somehow. I have not been able to work out how to this, so has anyone got any clues?

tia

b



You can specify the headers of your request with the 'Header' argument of the 'Get()' or 'Post()' method. Will it solve your problem?

Well, it turns out it won't.

> ...

Hi,

In the last commit, I added a 'HttpClient.Version' property to define that CURL option, and the corresponding constants in the 'Net' class.

Uee it that way:

MyHttpClient.Version = Net.HttpVersion11

Can you try it and tell me if it works for you?

--
Benoît Minisini.


Follow-Ups:
Re: Stream error in framing layerBB <adamnt42@xxxxxxxxx>
References:
Stream error in framing layerBB <adamnt42@xxxxxxxxx>
Re: Stream error in framing layerBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Stream error in framing layerBB <adamnt42@xxxxxxxxx>