Skip to content
Discussion options

You must be logged in to vote

The Android URLSession should be following redirects by default as well (it is the same curl build as Linux, which also follows redirects).

I do note that curl returns a 403 Forbidden for that URL:

$ curl -fsSL https://reqbin.com/echo/get/json
curl: (56) The requested URL returned error: 403

But Safari seems to load it fine 🤔 Is it possible they are doing a User-Agent check? What if you try something like https://httpbin.io/get instead?

Replies: 5 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by marcprux
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants