cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: cURL with nusoap over https

From: Diana Castillo <diana_at_hotelkey.com>
Date: Wed, 7 Jan 2004 12:45:02 +0100

I am connecting with a Soap Server without using nusoap, the code I use is:
 function getResponse($request){
  $ch = curl_init();
  $xml =$request;
  curl_setopt($ch, CURLOPT_URL,$this->url);
  curl_setopt($ch, CURLOPT_HTTPHEADER,array("SOAPAction:
http://tourico.com/webservices/SearchHotels","Content-Type: text/xml"));
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS,$xml);
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

  $xml_response=curl_exec ($ch);
  curl_close ($ch);
  return $xml_response;
 }

----- Original Message -----
From: "Tobias Boes" <tobias.boes_at_gmx.de>
To: <curl-and-php_at_lists.sourceforge.net>
Sent: Tuesday, January 06, 2004 3:34 PM
Subject: cURL with nusoap over https

> G'Day,
> don't know if this is the right place asking my questions...
> i made it to access a SOAP-server with nusoap over http and had no
worries.
> now the server was configured with https and i did several desperate
> attempts to get my
> script to work. i use php-4.3.2, nusoap-0.6.3 und libcurl-7.10.5.
> could anyone give me a code sample, a hint, a link or something else that
> shows me how curl and nusoap have to work together?
> i appreciate any help and would be very grateful for an reply.
> thanks,
> regards
> Tobias Boes
>
> --
> +++ GMX - die erste Adresse für Mail, Message, More +++
> Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>
>

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op%cck
Received on 2004-01-07