post xml as a variable with encode64 in c#

jenann15

New Member
I have an example in php but I can not get it working in c#\[code\]// base 64 encode the request:$request = base64_encode( $request );// Capture response with CURL$handle = curl_init();curl_setopt( $handle, CURLOPT_URL, $url );curl_setopt( $handle, CURLOPT_POSTFIELDS, array("request" => $request) );curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1);$response = curl_exec( $handle );curl_close( $handle );$xml = new SimpleXMLElement( $response );}\[/code\]
 
Back
Top