Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2012
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.44 KB | None | 0 0
  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 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement