Found what I was looking for. No wonder there are no examples, it's so
easy :p

   //send xml
    function postXML() {
       App::import('HttpSocket');
       App::import('Xml');

       $http = new HttpSocket();
       $url  = "http://.......";;
       $input = 'xml here';
       $xml = new Xml($input);

       $http->post($url, array("PipeMsg" => $xml));
    }

   //recieving end
    function recieveXML() {
        App::import('Xml');
        $xml = new Xml($_POST['PipeMsg']);
    }


It's between 2 cake app's, so I can just send the xml object.


On 6 sep, 10:44, Crazy <[EMAIL PROTECTED]> wrote:
> I need to post xml to a url.
>
> I read that this can be done with HttpSocket class, but i can't seem
> to find an example and there is nothing about it in the manual.
>
> Anyone that can give me an example on how to use this?
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to