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

[Help Wanted] How to do a HttpRequest with DoH #175

Open
DatL4g opened this issue Apr 10, 2023 · 3 comments
Open

[Help Wanted] How to do a HttpRequest with DoH #175

DatL4g opened this issue Apr 10, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@DatL4g
Copy link

DatL4g commented Apr 10, 2023

I'm struggling to do a HttpRequest using DnsOverHttps and can't find any proper documentation or example.

I want to scrape a website which may be only be accessable using DoH for some users.
Can you please give me an example how to do that?
Normally I use Jsoup but doing a "normal" request using ktor or whatever and parsing the html would be fine as well

@DatL4g DatL4g added the enhancement New feature or request label Apr 10, 2023
@gnarea
Copy link
Member

gnarea commented Apr 10, 2023

Hey. Sorry, but this doesn't belong here. You should try https://stackoverflow.com or https://ktor.io/support/.

@gnarea gnarea closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2023
@DatL4g
Copy link
Author

DatL4g commented Apr 11, 2023

Actually this does belong here as a simple get request should be part of your documentation as an example usage.

@gnarea
Copy link
Member

gnarea commented May 2, 2023

Hey. Sorry for the tardy reply.

I conceived this library to do SRV and TXT lookups, not to make HTTP requests, which is why I made it agnostic of any HTTP client and why we don't have any examples with HTTP clients.

Having said that, I'm happy to review and eventually merge a PR that shows an example with a popular HTTP client, so I'll reopen this issue.

@gnarea gnarea reopened this May 2, 2023
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