...

View Full Version : Urgent help needed with HTTP requests!



kaisellgren
07-12-2007, 08:30 PM
Greetings,

My code is not working. The first line is not proper. If I place document.write('test') after the first line, I won't see 'test'.


xmlhttp.open("GET","http://test.com/test.php?pid=42890&kid=166923&RD=4020414&DIF=1&REF=&tref=1&win_name=null&jsrand=264484&js1loc=http://localhost/test.php",true);
xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState==4)
{
alert(xmlhttp.responseText);
}
}
xmlhttp.send(null);

Help? I need to get the content of that EXACT url. Can anyone help me?

kaisellgren
07-13-2007, 01:58 PM
Anyone?

mcjwb
07-13-2007, 02:23 PM
Don't the forward slashes in the "http://localhost/test.php" bit of the url need to be encoded?

Or is it a cross site scripting (http://www.google.co.uk/search?hl=en&rlz=1T4GFRC_enGB219GB219&q=ajax+cross+site+scripting&meta=)issue.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum