Hello and welcome to our community! Is this your first visit?
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
    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!

  2. #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Thanked 626 Times in 605 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.
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com


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