Skip to content

Question: Unable to fetch HTML from whosampled.com using reqwests. #1608

Answered by seanmonstar
Danondso asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know anything about that site, but they must be looking for certain specific headers, is my guess. I noticed in Firefox, it was using HTTP/2. So just to try it, I took the reqwest simple example and adjusted it to use rustls-tls instead of default-tls, which advertises h2 over ALPN, and it seemed to work. 🤷

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Danondso
Comment options

Answer selected by Danondso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1607 on August 19, 2022 14:14.