我的response.php页面在一个页面上有效,而另一个页面则无效

时间:2018-11-09 11:34:01

标签: php ajax response

在这里,我正在显示与内容长度有关的网络详细信息。 对于一页内容长度-165 对于另一页面,内容长度-0

Request URL: https://www.jg.com/tabs/responsesolarcustomercare.php
Request Method: POST
Status Code: 200 OK
Remote Address: 

Referrer Policy: no-referrer-when-downgrade
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
Date: Fri, 09 Nov 2018 10:38:01 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache
Transfer-Encoding: chunked
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 165
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie: PHPSESSID=YYYYYYYYYYYYYYYYYYYYYYY
Host: www.jg.com
Origin: https://www.jg.com
Referer: https://www.jg.com/tabs/jsm.php
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
X-Requested-With: XMLHttpRequest
actionsolarcustomercare: add
custname: sfdsf
village: 
mandal: 
district: 
state: 
custphone: 
po_num: 
company: 
compdetails: 
damagedetails: 
servicerep: 
workdetails: 
status: 

对于其他页面是

 Request URL: https://www.jg.com/tabs/responsesolarcustomercare.php
Request Method: POST
Status Code: 200 OK
Remote Address: 103.24.201.24:443
Referrer Policy: no-referrer-when-downgrade
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
Date: Fri, 09 Nov 2018 10:39:07 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache
Transfer-Encoding: chunked
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 0
Cookie: PHPSESSID=yyyyyyyyyyyyyyyyyyyyyyyyyyy
Host: www.junnagroup.com
Origin: https://www.jg.com
Referer: https://www.jg.com/tabs/lalitha.php
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
X-Requested-With: XMLHttpRequest

我在运行时得到了这段代码, 并且无法确定问题所在。

1 个答案:

答案 0 :(得分:0)

@lalitha我可以看到主机在两个请求标头上都不同,在第二个请求中,您也没有发送任何发布数据,这就是您的内容长度为0的原因。

如果您可以提供一些代码,我们可以为您提供帮助。