dgtlmoon/changedetection.io

[feature] HTTP/2 Basic fast Plaintext/HTTP Client

Opened this issue · 4 comments

Version and OS
v0.47.03 on ubuntu/docker

Is your feature request related to a problem? Please describe.
Websites block access to HTTP/1 but if sent HTTP/2 everything works correctly

Describe the solution you'd like
Ability to send basic requests using HTTP/2 possibly using https://github.com/jawah/niquests

Describe the use-case and give concrete real-world examples
get requests to certain APIs will fail unless sent by HTTP/2. Tested using Postman. Sent a request using HTTP/1.1 and it was denied. Sent the same request by HTTP/2 and was granted access.

hmm any examples which sites exactly?

Sent the wrong watch but I think I might have figured it out.

added to requests.py at line 30:
import niquests as requests

Added to requirements.txt:
niquests==3.10.2

Seems to work for me now.

niquests looks super interesting

I thought it was working properly with niquests but it doesn't appear that way. Maybe it's not sending the headers correctly? Or sending as HTTP/2 at all?

https://changedetection.io/share/aYiniL8JUOwa

Works in Postman sent HTTP/2. Fails in Postman sent HTTP/1.1.