Home > Back-end >  Idhttp. GET 400 reques bad how to GET page source code
Idhttp. GET 400 reques bad how to GET page source code

Time:10-01

I use Idhttp get get web source is a 400 error, not content, with normal open website, IE cut package tool tip is a 400 error, but Internet explorer can correctly display the web page content, not an error occurs,
Now, how do I use idhttp get made 400 error page, page source code, can normal idhttp is created in the thread, how to correctly make web content in the thread! Thank you to give directions,

CodePudding user response:

Mean what, stick point code

CodePudding user response:

Not stingy don't send the code, I'm not is a 400 error code, only in the case of certain out
 
Try
NextUrl:='https://www.jjjjj.com';//automatic url
IdHTTP1. Request. AcceptLanguage:='useful'.
IdHTTP1. Request. ContentType:='application/x - WWW - form - urlencoded';
IdHTTP1. Request. AcceptEncoding:='gzip, deflate';
IdHTTP1. Request. UserAgent:='Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) ';
IdHTTP1. Request. CacheControl:='no - cache;
IdHTTP1. Request. AcceptCharSet:="utf-8";
IdHTTP1. Get (NextUrl, Response);
Except,
Webinfo:=';
The Response. DataString;
end;

It is not a normal, 400 when I was only in limited IP login, there is something wrong with the account 400, IE normal visit, also only can display IE

CodePudding user response:

400 error as format error,

CodePudding user response:

Ie can normal access network no problem

CodePudding user response:

INDY HTTP components to use always feel is not very smooth, it will probably use,

CodePudding user response:

Sometimes need to retry more threads can take to don't mistake the return value

CodePudding user response:

  • Related