Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript HTTP Request

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #158086
    Junni
    Participant

    am trying to send HTTP request through AJAX, need help dont know where is the error…

    <script>
    
    
    var theUrl = 'http:///bsms app4/sendapi.isp?id=&message=&shortcode=&lann=l&mobilenum=&password=&aroupname=';
    
    function httpGet(theUrl) { var xmlHttp = null;
    
        xmlHttp = new XMLHttpRequest();
        xmlHttp.open( "GET", theUrl, false );
        xmlHttp.send( null );
        return xmlHttp.responseText;
    
    
    }
    
    #158109
    CrocoDillon
    Participant

    Double check the url and cross origin settings.

    #158131
    Junni
    Participant

    I didnt get what you said

    #158135
    __
    Participant

    Make sure the URL and cross-origin settings are correct. I only took a quick glance, but the URL doesn’t look very correct to me.

    #158140
    Junni
    Participant

    This is the exact url which i got in api documentation URL IMAGE

    #158143
    __
    Participant

    bsms app4 is not a valid hostname. (Also, .jsp, not .isp.)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.