[r]--------END WebDNA----PHP$token = "";if(isset($token)) {$time_start = microtime(true);// create post array$post_data = array('token' => $token, 'apiKey' => 'xxxxxxxxxxxxxxxxxxxx', 'format' => 'xml'); //Set to either 'json' or 'xml'// set up curl$curl = curl_init();curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl, CURLOPT_URL, 'https://rpxnow.com/api/v2/auth_info');curl_setopt($curl, CURLOPT_POST, true);curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);$r = curl_exec($curl);$time_end = microtime(true);$time = $time_end - $time_start;echo "$time seconds to parse
$r";?>-------END PHPHere is my guess at the problem... I have seen where our TCPConnect interacts with certain SSL cert configs and certain SSL certs in strange ways. Unfortunately, we can't change how rpxnow integrates their SSL stuff and we are stuck with tcpconnects' idiosyncrasies for the time being.. so I suggest that for this solution, finding an alternate solutions is best.If Olin has PHP, it would be fairly interesting to call PHP via [DOS]to run the code (include file) posted above and to then parsethe return value in WebDNA! ;-)Gotta love the WebDNA syntax.. but we have a *long* way to go untilit catches up to the maturity level of other languages. That is justthe cold hard truth! ;-)Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com Associated Messages, from the most recent to the oldest:
|
[r]--------END WebDNA----PHP$token = "";if(isset($token)) {$time_start = microtime(true);// create post array$post_data = array('token' => $token, 'apiKey' => 'xxxxxxxxxxxxxxxxxxxx', 'format' => 'xml'); //Set to either 'json' or 'xml'// set up curl$curl = curl_init();curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl, CURLOPT_URL, 'https://rpxnow.com/api/v2/auth_info');curl_setopt($curl, CURLOPT_POST, true);curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);$r = curl_exec($curl);$time_end = microtime(true);$time = $time_end - $time_start;echo "$time seconds to parse
$r";?>-------END PHPHere is my guess at the problem... I have seen where our TCPConnect interacts with certain SSL cert configs and certain SSL certs in strange ways. Unfortunately, we can't change how rpxnow integrates their SSL stuff and we are stuck with tcpconnects' idiosyncrasies for the time being.. so I suggest that for this solution, finding an alternate solutions is best.If Olin has PHP, it would be fairly interesting to call PHP via [DOS]to run the code (include file) posted above and to then parsethe return value in WebDNA! ;-)Gotta love the WebDNA syntax.. but we have a *long* way to go untilit catches up to the maturity level of other languages. That is justthe cold hard truth! ;-)Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com Donovan Brooke
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...