Get “HTTP/1.1 406 Not Acceptable” when accesing my website with Delphi Indy Control


I am usig Delphi XE3 + TIdHTTP(Indy) control to visit websites.

When visiting my website via Get method, I will get an exception “HTTP/1.1 406 Not Acceptable”.

I am not sure whether it is a problem of my program or my website, so I try to use my program to visit another website and this time I will NOT get the exception.

Therefore, this is a problem of my website so I ask here.

Based on Error:406 not acceptable, “A 406 Not Acceptable HTTP error usually indicates that the content type of your webpage is not in the Accept request header that your browser sent to the webserver.”, so is there a way to know what is “the content type of my website”?


alancc 4 months 0 Answers 12 views 0

Leave an answer