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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Creating an HTTPS Tunnel

    I am trying to set up communications to another site from our student portal. They are providing an API with the following instructions:

    Step 1: call their API with a specific https url. That is to create the tunnel
    Step 2: they will return an XML field in the form <valid-request>actual url to go to<valid-request>
    Step 3: link to that url

    I have been able to do step 1 with a window.location = "tunnel url" command.

    That returns a page with the <valid-request> data displayed (in the html body)

    How can I access the contents of the body tag, or is there a better way to do this?

    Thanks for the Help!
    Ron

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,184
    Thanks
    10
    Thanked 569 Times in 550 Posts
    you will probable have to use a server-side script to fetch that remote url and give it to local javascript via ajax. if the remote API supports cors, normal ajax should work.

    try a basic ajax demo and replace the demo url with your specific url and see if it works. if not, you need a server to bypass the cross-domain restrictions on pre-cors ajax.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5


  •  

    Tags for this Thread

    Posting Permissions

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