error using XMLHttpRequest.open over HTTPS
Phil Oertel <[email protected]> Mon, 15 Mar 2010 15:16:42 -0500
| Newsgroups | gmane.comp.graphics.chromium.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0318867011661246232==
Content-Type: multipart/alternative; boundary=00504502cc036920b00481dc90a9
--00504502cc036920b00481dc90a9
Content-Type: text/plain; charset=ISO-8859-1
Hi chromium-users,
I'm running into an issue on the latest Chrome for Windows - 4.0.249.89
(38071). It does not affect the latest version for mac, so hopefully a fix
is already out and just hasn't made it into the Windows releases yet.
While on a page delivered over HTTPS, calls to XMLHttpRequest.send()
generate an exception: "NETWORK_ERR: XMLHttpRequest Exception 101".
readyState is 1 (Open) prior to the call. The same call succeeds when the
page is opened over plain old HTTP. Thoughts and suggestions would be much
appreciated. Here's a small test case, written in PHP (just so the test case
could be contained in a single file):
causeNetworkErr.php:
<?php
if ($_GET['jav']) {
echo '<blink>Not broke!</blink>';
exit;
}
?>
<html>
<head>
<title>Try to break chroooooome</title>
<script type="text/javascript">
function getNewContent() {
var xmlHttp=new XMLHttpRequest();
var url = "causeNetworkErr.php?jav=ya"
xmlHttp.open("GET",url,false);
xmlHttp.send(null);
var rtns=xmlHttp.responseText;
document.getElementById("survey").innerHTML=rtns;
}
</script>
</head>
<body>
<h1>Click the button to break chrome</h1>
<div id="survey">
<button onclick="surveygoinit()">Click me.</button>
</div>
</body>
</html>
--00504502cc036920b00481dc90a9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi chromium-users,<br><br>I'm running into an issue on the latest Chrom=
e for Windows - 4.0.249.89 (38071). It does not affect the latest version f=
or mac, so hopefully a fix is already out and just hasn't made it into =
the Windows releases yet.<br>
<br>While on a page delivered over HTTPS, calls to XMLHttpRequest.send() ge=
nerate an exception: <font size=3D"2"><span style=3D"font-family: arial,hel=
vetica,sans-serif;">"</span><span class=3D"Apple-style-span" style=3D"=
border-collapse: separate; color: rgb(0, 0, 0); font-family: arial,helvetic=
a,sans-serif; font-style: normal; font-variant: normal; font-weight: normal=
; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px=
; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"=
><span class=3D"Apple-style-span" style=3D"color: rgb(255, 0, 0); white-spa=
ce: pre-wrap;">NETWORK_ERR: XMLHttpRequest Exception 101"<font color=
=3D"#000000">. readyState is 1 (Open) prior to the call. The same call succ=
eeds when the page is opened over plain old HTTP. Thoughts and suggestions =
would be much appreciated. Here's a small test case, written in PHP (ju=
st so the test case could be contained in a single file):<br>
<br>causeNetworkErr.php:<br><?php<br>if ($_GET['jav']) {<br> =
echo '<blink>Not broke!</blink>';<br> exit;<br>}<br>=
?><br><br><html><br><head><br><title>Try to break chro=
ooooome</title><br>
<br><script type=3D"text/javascript"><br>function getNewCon=
tent() {<br> var xmlHttp=3Dnew XMLHttpRequest();<br><br> var url =3D =
"causeNetworkErr.php?jav=3Dya"<br> xmlHttp.open("GET"=
;,url,false);<br>
xmlHttp.send(null);<br> var rtns=3DxmlHttp.responseText;<br><br> =
document.getElementById("survey").innerHTML=3Drtns;<br>}<br></=
script><br><br></head><br><br><body><br><h1>Click the =
button to break chrome</h1><br>
<br><div id=3D"survey"><br> <button onclick=3D"sur=
veygoinit()">Click me.</button><br></div><br><br></b=
ody><br></html><br></font></span></span></font>
--00504502cc036920b00481dc90a9--
--===============0318867011661246232==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--===============0318867011661246232==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Chromium-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chromium-users
--===============0318867011661246232==--