Open GoogleCodeExporter opened 9 years ago
Hi, there is a Ripcord_Transport_CURL class in ripcord as well. You can use it
by calling Ripcord::client() like this:
$client = ripcord::client( $url, $options, new Ripcord_Transport_CURL( array(
CURLOPT_VERBOSE => TRUE,
CURLOPT_TIMEOUT => 60,
CURLOPT_CONNECTTIMEOUT => 60,
CURLOPT_MAXREDIRS => 3,
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_HTTPHEADER => array('Content-type: text/xml'),
CURLOPT_SSL_VERIFYTYPEER => false
) ) );
I guess the HTTPHEADER should have been standard :)
The default class also returns the headers as a string instead of an array,
have to look into that as well.
Anyway, I hope this works for you. If not tell me whats missing and I'll fix it.
~
Auke
Original comment by a...@muze.nl
on 10 Dec 2012 at 11:39
TODO:
- add the CURLOPT_HTTPHEADER with Content-type: text/xml as default in the CURL
transport layer
- check the other CURLOPT settings for a sane default behaviour.
Original comment by a.c.van....@gmail.com
on 10 Dec 2012 at 12:23
Original issue reported on code.google.com by
mr.ryansilalahi
on 13 Aug 2012 at 5:18Attachments: