Reading an external page response over HTTPS?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bitslong
    New Member
    • Apr 2007
    • 7

    Reading an external page response over HTTPS?

    I know that an XML HTTP Request won't work to an external site.
    Is there some other way that I can make a (different/other/any) request to this (HTTPS) site:
    https://secure.logmeinr escue.com/SSO/GetLoginTicket. aspx?SSOID=monk ey&CompanyID=11 11&Password=mon key

    and process the returned info?
    I'm using xampp backend locally.

    LogMeIn provide ASP code which can handle it but that's no good to me. It's here for reference:
    Code:
    string sSSOID = monkey;
    
    string sSSOPassword = monkey;
    
     
    
    System.Net.HttpWebRequest oReq =
    
        (System.Net.HttpWebRequest)System.Net.WebRequest.Create("https://secure.logmeinrescue.com/SSO/GetLoginTicket.aspx?SSOID=" + sSSOID + "&Password=" + sSSOPassword + "&CompanyID=11111");
    
    System.Net.HttpWebResponse oResp = (System.Net.HttpWebResponse)oReq.GetResponse();
    
    string sResp = new System.IO.StreamReader(oResp.GetResponseStream()).ReadToEnd();
    
     
    
    if (sResp.StartsWith("OK:"))
    
        Response.Redirect( sResp.Substring("OK:".Length) );
    
    else
    
        Response.Write( sResp );
  • Bitslong
    New Member
    • Apr 2007
    • 7

    #2
    After much digging around I came across:
    http://developer.yahoo .com/javascript/howto-proxy.html

    Works a treat!!

    Comment

    Working...