我明确指定了一个POST请求,但是在请求中没有看到POST数据,而且还指定了OPTIONS。
响应应该是一个HTML,以表格格式指定与查询匹配的用户。 我正在尝试发布并读取HTML以创建自动完成输入框。
以下是Jquery代码:
$.post('https://internal.company.com/data/displayUserList',
{ Email: "", Name: "%GEORGE%"},
function(responseText, textStatus) {
console.log("Response:\n" + responseText + textStatus)
}
);
这是由FireBug1.6.1 (Firefox)捕获的请求
OPTIONS /data/displayUserList HTTP/1.1
Host: internal.company.com
User-Agent: Mozilla/5.0 Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Origin: null
Access-Control-Request-Method: POST