View Full Version : Posting to a HTTPS connection

03-23-2009, 12:34 AM
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:

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

03-23-2009, 02:59 AM
RPX provides sample implementation in PHP - https://rpxnow.com/examples/RPX.php


$rpx = new RPX($api_key, "http://EXAMPLE.rpxnow.com/");
$auth_info = $rpx->auth_info($token);