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 https://www.wordpress.com 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”?