[support] How to send a XML to drupal menu callback

Michel Morelli michel at ziobuddalabs.it
Wed Jun 30 07:41:23 UTC 2010


Metzler, David ha scritto:
> Ummm... Looks like you're mixing your metaphores.  
>
> To pass variables using CGI, they must be properly encoded key value
> pairs.  Example: 
>
> $data = array('xml'=>$xml); 
> $data_string = drupal_query_string_encode($data); 
> drupal_http_request("http://mysite.it/foo",$header,"POST",$xml,3);
>
>   
Hi, my code works perfectly if i call a web application created by 3rd 
farm.
In Drupal I have the problem that POST is empty.

M.


-- 
Michel 'ZioBudda' Morelli                       michel at ziobuddalabs.it
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ziodrupal.net       			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at ziobuddalabs.it



More information about the support mailing list