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
    Regular Coder
    Join Date
    Oct 2004
    Posts
    104
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Posting to a HTTPS connection

    Hi Guys,
    Have posted once, didn't have much success (think I was misunderstood and then topic died), Google returned little help, so I'm trying here to see if i'm a bit more successful this time!

    I'm trying to integrate RPXNow OpenID tool into my site (I'm no good at this stuff), and it reads:

    Quote Originally Posted by RPX Now
    2) Receive the RPX token, and get the authentication information

    After a successful authentication, RPX redirects the user back to the token_url at your website as specified in step 1. Write some code to handle requests to your token_url, and extract the token parameter.

    Make the auth_info API call

    HTTP POST to https://rpxnow.com/api/v2/auth_info with the following required parameters:

    apiKey Removed
    token Use the token sent to your token_url
    Can anyone point me in the right direction to get a HTTPS connection and post the information above there, and read the response into a string?

    Thanks in advance

  • #2
    New Coder
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    69
    Thanks
    0
    Thanked 15 Times in 15 Posts
    RPX provides sample implementation in PHP - https://rpxnow.com/examples/RPX.php

    Usage:

    PHP Code:
    $rpx = new RPX($api_key"http://EXAMPLE.rpxnow.com/");
    $auth_info $rpx->auth_info($token); 
    Last edited by steelaz; 03-23-2009 at 04:04 AM.


  •  

    Posting Permissions

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