Skip to content
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

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

Open
ta7tUHIJHx4RwR21 opened this issue Nov 2, 2024 · 4 comments
Open

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

ta7tUHIJHx4RwR21 opened this issue Nov 2, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@ta7tUHIJHx4RwR21
Copy link

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.

@ta7tUHIJHx4RwR21 ta7tUHIJHx4RwR21 added the enhancement New feature or request label Nov 2, 2024
@dgtlmoon
Copy link
Owner

dgtlmoon commented Nov 2, 2024

hmm any examples which sites exactly?

@ta7tUHIJHx4RwR21
Copy link
Author

ta7tUHIJHx4RwR21 commented Nov 2, 2024

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.

@dgtlmoon
Copy link
Owner

dgtlmoon commented Nov 3, 2024

niquests looks super interesting

@ta7tUHIJHx4RwR21
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants