admin管理员组

文章数量:1289874

I am usig Delphi XE10.3 + TIdHTTP(Indy)(10.6.2) 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"?

Thanks

本文标签: Get quotHTTP11 406 Not Acceptablequot when accesing my website with Delphi Indy Control