HttpResponse response returns string content_length = -1 problem
XY
XY 2019-04-27 15:41:56
0
0
1167

php environment: THINKPHP5

C# code:

request = (HttpWebRequest) WebRequest.Creeate(uri);

request.KeepAlive = false;

request.Method = "GET";

response = (HttpWebResponse) request.GetResponse();

php is exit($content);

If the length of $content exceeds 8000, then the content_length of the response = -1. If it is less than 8000, it is the real length. Can anyone tell me what is going on?

XY
XY

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template