Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 23rd, 2012  |  syntax: XML  |  size: 1.44 KB  |  views: 83  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Here is my xml request below
  2.  
  3. curl -H "text/xml" -d 'apikey=118&xml=<company_request><transaction>set_survey_response_list</transaction><email><![CDATA[email@gmail.com]]></email><password>password</password><data>
  4.        <survey_response_list>
  5.            <company_email><![CDATA[email@gmail.com]]></company_email>
  6.            <survey_response>
  7.                <question_id></question_id>
  8.                <question_text><![CDATA[First Name]]>
  9.                </question_text>
  10.                <answer_id_list></answer_id_list>
  11.                <answer_text_list><![CDATA[red & blue]]>
  12.                </answer_text_list>
  13.                <other_text></other_text>
  14.            </survey_response>  
  15.        </survey_response_list></data></company_request>'  http://localhost/company/remote_call/
  16.  
  17. I am getting this when I do a dump of the posted data in codgeigniter
  18.  
  19. var_dump($this->input->post('xml')); die();
  20.  
  21.  
  22. string(554) "<company_request><transaction>set_survey_response_list</transaction><email>&lt;![CDATA[email@gmail.com]]></email><password>password</password><data>
  23.         <survey_response_list>
  24.             <company_email>&lt;![CDATA[email@gmail.com]]></company_email>
  25.             <survey_response>
  26.                 <question_id></question_id>
  27.                 <question_text>&lt;![CDATA[First Name]]>
  28.                 </question_text>
  29.                 <answer_id_list></answer_id_list>
  30.                 <answer_text_list>&lt;![CDATA[red "