I have done some research on HttpOnly cookies and the problem that exist with the possibility to use an XHR request in combination with the TRACE method to get the cookie value echoed back from the server.
For a secure webapplication I currently have the following setup:
Session cookie is sent at login with secure and httpOnly propert...
document.getElementById('contactButton').value = "Sending";
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,false);
xmlhttp.send(null);
function stateChanged(){
if (xmlhttp.readyState==4) {
var response = xmlhttp.responseText;
if(response == "true"){
document.getElementById('contactButton').value = "S...
I'm building a Joomla extension and i'm trying to send some data to a php script, with MooTools, to be saved in a database.
This is the code for the request :
myReq: new Request({
url: '/index.php?option=com_calculator&task=saveData',
method: 'post',
onSuccess: function (responseText, responseXML) {
...
I just updated our HTMLUnit version to 2.7 (from 2.3) and I'm seeing spurious errors in one of my tests. It appears that HTMLUnit is making one XMLHttpRequest at a time, no matter what I do.
Note that this isn't an issue of single-threading the test with with the XMLHttpRequests -- I've confirmed that the test itself continues after I s...
Hi!
I am trying to develop a sidebar gadget that automates the process of checking a web page for the evolution of my transfer quota. I am almost at it but there is one last step I need to get it working: Sending an HttpRequest with the correct POST data to a php page. Using a firefox plugin, here is what the "Content-Type" of the heade...
hi,
i using below asp code for xml request
<%
pXML=Server.URLencode(SearchRequest)
set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhtt.open "post", http://OutSideDomain/xml_requests , false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send "xml_request=" &pXML
htresult = xmlhttp.re...
I'm making a small Adobe AIR app (my first) using HTML+Javascript. I need to run more than one asynchronous data request, but the second one didn't seem to be firing (note that the requests were not run concurrently originally). I tried stripping the program down to the bare minimum that exhibited problems, and at first only the first re...
XmlHttpRequest works through callbacks. So how can I return a value? I tried to set a global variable, but that doesn't seem to be working.
var response = null; // contains the most recent XmlHttpRequest response
// loads the info for this username on the page
function loadUsernameInfo(username) {
getUserInfo(username);
var pro...
I am attempting to parse a XML file using Javascript and I'm running into issues on IE7.
If I have this code:
function LoadXml()
{
var xmlPath = document.getElementById("hsTreeviewXmlPath").value;
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope...
I need to access to service from windows-client? that can be called by ajax - GET request. and returns XML
if i using HttpWebRequest request = HttpWebRequest.Create...
for ex url: http://site.com/UtilBillAjaxServlet?event=GET_PAMENT_CENT_DUE&SERVICEPROIDER=providername&SERVICETYPE=BROADBAND&CONSUMERNUMBER=195100601
And it ...
All right, so previously I asked...
SOAP Prototype AJAX SOAPAction Header Question (can't hyperlink it unfortunately, not enough rep for "2" links... see below)
Which never worked out. I think it has something to do with Prototype, it will return a 0 as onSuccess. I can't figure out the Content-type utf-8 formatting. Now if I go back...
I built up this regex at http://regextester.com to parse YSOD but VS is complaining about a syntax error. I am sure I am missing an escape somewhere but I am coming up blank.
Here is is in original form. any help is appreciated.
var rxYSOD = /<!--\s*\[(.*?)]:(\s*.*\s(.*\n)*?)\s*(at(.*\n)*)-->/gs;
UPDATE:
Kobi pointed out the obvious...
After I execute this code asp scripts quite working.
<!-- #include file="Connection.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
function Page()
{
var db = new DBConnection;
this.DAL = db.retriveDAL("Content");
var url = new String(Request.ServerV...
Using jQuery's $.ajax() function. Wherether the request has been purposely aborted, or if the server is down (not responding) it appears the same outcome happens;
That is the "success" handler gets triggered where xmlHttpRequest.status = 0 and xmlHttpRequest.readyState = 4.
(I simulated the failed request by shutting off IIS, and the...
Hi all,
I'm developing a simple auxiliary class to send requests using XmlHttpRequest (code below). But I cant make it work. At google chrome, for example, I get the error INVALID_STATE_ERR: DOM Exception 11 and at the other browsers I get a status == 0
Thanks
//@method XRequest: Object constructor. As this implements a singleton, t...
hello all,
im new in dojo please how do i construct an XhrPost request in zend?
thanks.
...
When I do:
var xmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP");
xmlhttp.Open("GET", "http://google.com", false);
xmlhttp.Send();
it raises this error:
Microsoft JScript runtime error
'800a01b6'
Object doesn't support this property
or method
/library/Page.asp, line 10
With Microsoft.XMLHTTP everything wor...
I have multiple xmlHttpRequests on my page, and I am attempting to call the abort method on them all. Works great in FF. IE, on the other hand does not do a darn thing. The connections do not close, and I am unable to navigate to another page until the requests complete. What is this? Why doesn't IE close the connections when abort() is ...
Pulling my hair out please does anybody have the solution?
In the readystate event handler, I simply read responseText - it comes back as emptystring/blank, 1 out of 100 times when I use FireFox 3.5 + Firebug on Windows Vista, or 1 out of 10 times when using FireFox 3.5 on Mac OS.
The bizarre thing is that the responseText seems to get...
i am making ajax calls with jquery like this
http://pastie.org/860837
and sometimes i get the ajax errors, and i get xhr status as 408. what does that mean?
...