Building a Command Line Application
Making a GET Request with https
When I repeat the steps made by Andrew, I get the statusCode 406. Why? How can I solve this?
Thanks a lot everyone.
You problably are sending unacepted charset or language to the GET request, above some text of mozila development network:
"The HTTP 406 Not Acceptable client error response code indicates that a response matching the list of acceptable values defined in Accept-Charset and Accept-Language cannot be served."
Thanks for your answer Iagor. I'm not having the error anymore but I don't really know why. I rewrote the code and now it works.
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
I forgot my password