CFHTTP and secure sites

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFHTTP and secure sites

    OK, I've used the CFHTTP tag with the URL, method, ResolveURL, UserName, and
    Password parameters to connect to a remote server that requires authentication.
    But here's the problem:

    Although the page's source is retrieved without a problem, when the browser
    attempts to render the returned source code, the browser gets stopped for a
    login prompt at EVERY dependent file (images, stylesheets, even BASE HREF
    tags)... I thought the whole idea of the username and password parameters was
    to allow us to see and use a site requiring authentication, but it seems to me
    that it works only on the original source code and not the dependencies... am I
    missing something here?

    Any help would be very much appreciated!

    Thanks in advance,

    bw

    Gakusei Guest

  2. Similar Questions and Discussions

    1. secure intranet site with non secure sites?
      I log into a domain open an secure intranet site and then when I go to yahoo.com it messes up my secure intranet site that I have open. Cant...
    2. Why can't I access secure sites??
      If you have dsl/cable which does not require a username an password try booting into safe mode with networking. Does it work there? If so, you have...
    3. cannot access secure web sites
      Goto http://support.microsoft.com, search the knowledge base for article 813444. times.
    4. locked out secure sites
      no email, messengers,or msn explorer will work. i cant send pictures and access some web sites
    5. secure sites with xp
      gentlemen: i have a new laptop with xp home ed access to the web is fine with cable...but with dialup only i can not access secure sites, ie...
  3. #2

    Default Re: CFHTTP and secure sites

    You need to think about how CFHTTP works. Essentially when you use CFHTTP, the
    Cold Fusion server is mimicking the actions of your browser to retrieve the
    page. When you log into a "secure" site, you enter in a User Id and a
    Password. The remote site authenticates you and stores a token (cookie, etc.)
    in your browser so the site can maintain a "session" with your browser, and
    know that you have already "logged in". When you send the User Id and Password
    via CFHTTP, the token is sent back to the ColdFusion server, not your browser.
    However, when a link or object (image, style sheet, script, etc.) is embedded
    within the code retrieved via CFHTTP, and you simply display that code "as is",
    your browser is requesting the embedded objects. Hence your browser needs to
    be "authenticated" not the CF Server. This is analogist to adding an item to
    a shopping cart using IE, but then trying to check out using FireFox.

    Hope this helps,
    Sean


    ssawka Guest

  4. #3

    Default Re: CFHTTP and secure sites

    ssawka, would it make sense to parse CFHTTP.FILECONTENT, make a list of all
    ..jpg, .gif, .css, etc. and have the ColdFusion server get them. It would seem
    that, since the CF server has the cookie, it would be authorized to do that.
    There would be a small issue as to what to do with these files after the server
    gets them, but that can be worked out so the page can render properly.

    jdeline Guest

  5. #4

    Default Re: CFHTTP and secure sites

    Sorry, I did not see your second post until today. Yes having ColdFusion
    download the files is one method, however the links may need to be modified as
    well. There may be other methods depending on how the session is being
    maintaines by the third party site.



    ssawka Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139