我在理解jQuery如何为ajax帖子创建标题时遇到问题。我在不同的域上有两个相同的代码。当我从第一个域上传图像时,我得到了这个
dAccept:*/*
Accept-Charset:ISO-8859-2,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:sl-SI,sl;q=0.8,en-GB;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:255066
Content-Type:multipart/form-data; boundary=----WebKitFormBoundary5LGqeDQ41hDSN3D8
Cookie:__utma=101786774.1930543898.1315154165.1331048004.1331409652.146; __utmz=101786774.1315154165.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=av1jlmchvb75tfvreq9fg6o6j1
Host:domain1.local
Origin:http://domain1.local
Referer:http://domain1.local/upload
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11
X-Requested-With:XMLHttpReques
在domain1图片上传工作。但是在domain2上我们获得了不同的resoults
Accept:*/*
Accept-Charset:ISO-8859-2,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:sl-SI,sl;q=0.8,en-GB;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:255066
Content-Type:false
Cookie:PHPSESSID=l8216r89no29ht2e2r5083b4j6
Host:domain2.local
Origin:http://domain2.local
Referer:http://domain2.local/upload
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11
X-Requested-With:XMLHttpRequest
为什么内容类型为false?有什么想法吗?
答案 0 :(得分:0)
我重新启动了apache,一切正常。所以这里没有答案。