-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable HTTP/2 for GET queries #149
Comments
Hey @Zabrane,
Yes, check out the request options
https://github.com/puzza007/katipo#request-options. There's an option
called http_version.
…On Sun, Nov 26, 2023, 07:16 Zabrane ***@***.***> wrote:
Hi @puzza007 <https://github.com/puzza007>
I'm trying to send a GET request without HTTP2.
Even if I specify {pipelining, nothing}, this query seems to be sent
using HTTP2.
{ok, _} = application:ensure_all_started(katipo).Pool = api_server.
{ok, _} = katipo_pool:start(Pool, 2, [{pipelining, nothing}]).ReqHeaders = [{<<"User-Agent">>, <<"katipo">>}].Req = #{url => <<"https://www.vancleefarpels.com/">>,
method => get,
headers => ReqHeaders,
connecttimeout_ms => 5000,
ssl_verifyhost => false,
ssl_verifypeer => false}.
{ok, #{status := 200,
headers := RespHeaders,
cookiejar := CookieJar,
body := RespBody}} = katipo:req(Pool, Req).
** exception error: no match of right hand side value {error,#{code => unknown_error,
message =>
<<"HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)">>}}
Is there a way to tell katipo to not use HTTP/2?
Many thanks
—
Reply to this email directly, view it on GitHub
<#149>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAJ7UDD4XXSNDYT6FZSSLYGIYWZAVCNFSM6AAAAAA72IDUQSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTANZVGMYDOMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@puzza007 oh, missed that one: Req = #{url => <<"https://www.vancleefarpels.com/">>,
method => get,
http_version => curl_http_version_1_1,
headers => ReqHeaders,
connecttimeout_ms => 5000,
ssl_verifyhost => false,
ssl_verifypeer => false}. Thanks a lot. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @puzza007
I'm trying to send a
GET
request withoutHTTP2
.Even if I specify
{pipelining, nothing}
, this query seems to be sent using HTTP2.Is there a way to tell
katipo
to not useHTTP/2
?Many thanks
The text was updated successfully, but these errors were encountered: