[Webkit-unassigned] [Bug 182476] New: HTTP POST not sending body in IOS<11
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 5 01:46:24 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=182476
Bug ID: 182476
Summary: HTTP POST not sending body in IOS<11
Product: WebKit
Version: Safari 9
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: XML
Assignee: webkit-unassigned at lists.webkit.org
Reporter: shchawla at microsoft.com
HTTP Post is not sending body for iOS version <11 in WKWebView.
Sample request is
fireXhr("https://hooks.zapier.com/hooks/catch/XXX/", {
loginId: 4,
password: 4
}, "POST",
{},
function(response) {
console.log(response);
});
}
function fireXhr(url, data, method, headers, callback) {
try {
var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
callback && (request.onreadystatechange = function() {
if(request.readyState == 4 && request.status == 200) {
callback(request);
}
});
request.open(method, url, true);
for(var header in headers) {
request.setRequestHeader(header, headers[header]);
}
request.send(JSON.stringify(data));
}
catch(e) {
console.log(e);
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180205/14789901/attachment.html>
More information about the webkit-unassigned
mailing list