Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Location
    Finland, Hollola
    Posts
    285
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Urgent help needed with HTTP requests!

    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'.

    Code:
    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?
    PHP 5 & MySQL 5 (Y)

  • #2
    Regular Coder
    Join Date
    Jan 2006
    Location
    Finland, Hollola
    Posts
    285
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Anyone?
    PHP 5 & MySQL 5 (Y)

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Location
    UK
    Posts
    223
    Thanks
    0
    Thanked 14 Times in 14 Posts
    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 issue.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •