<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to pass parameter in   HTTP_POST or  HTTP Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195461#M1202298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use HTTP_POST to pass xml info by http_post. I want to pass a simple parameter and receive it in a JSP first for test. I assign the value in the following way:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF text,&lt;/P&gt;&lt;P&gt;         line(256),&lt;/P&gt;&lt;P&gt;       END OF text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA xml  TYPE TABLE OF text WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xml-line = 'apple=aaa'.&lt;/P&gt;&lt;P&gt;APPEND xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HTTP_POST'&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      REQUEST_ENTITY_BODY         = xml&lt;/P&gt;&lt;P&gt;      response_entity_body        = response&lt;/P&gt;&lt;P&gt;      response_headers            = response_headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************&lt;/P&gt;&lt;P&gt;then I use a JSP to receive the parameter, but what I get from "apple" is null.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;Param APPLE&lt;/P&gt;&lt;P&gt;	&amp;lt;%&lt;/P&gt;&lt;P&gt;	String apple=request.getParameter("apple");&lt;/P&gt;&lt;P&gt;	out.println(apple);&lt;/P&gt;&lt;P&gt;	%&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1 Is this way correct for passing a parameter via a HTTP? It seems I failed to pass a parameter.What is the correct way?&lt;/P&gt;&lt;P&gt;2 If I want to pass a whole xml string, what format should I organize my data stream?Maybe I should use cl_http_client to make it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2009 10:57:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-19T10:57:36Z</dc:date>
    <item>
      <title>How to pass parameter in   HTTP_POST or  HTTP Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195461#M1202298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use HTTP_POST to pass xml info by http_post. I want to pass a simple parameter and receive it in a JSP first for test. I assign the value in the following way:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF text,&lt;/P&gt;&lt;P&gt;         line(256),&lt;/P&gt;&lt;P&gt;       END OF text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA xml  TYPE TABLE OF text WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xml-line = 'apple=aaa'.&lt;/P&gt;&lt;P&gt;APPEND xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HTTP_POST'&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      REQUEST_ENTITY_BODY         = xml&lt;/P&gt;&lt;P&gt;      response_entity_body        = response&lt;/P&gt;&lt;P&gt;      response_headers            = response_headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************&lt;/P&gt;&lt;P&gt;then I use a JSP to receive the parameter, but what I get from "apple" is null.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;Param APPLE&lt;/P&gt;&lt;P&gt;	&amp;lt;%&lt;/P&gt;&lt;P&gt;	String apple=request.getParameter("apple");&lt;/P&gt;&lt;P&gt;	out.println(apple);&lt;/P&gt;&lt;P&gt;	%&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1 Is this way correct for passing a parameter via a HTTP? It seems I failed to pass a parameter.What is the correct way?&lt;/P&gt;&lt;P&gt;2 If I want to pass a whole xml string, what format should I organize my data stream?Maybe I should use cl_http_client to make it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 10:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195461#M1202298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T10:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter in   HTTP_POST or  HTTP Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195462#M1202299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yichao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the following thread:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1243130"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 11:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195462#M1202299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T11:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter in   HTTP_POST or  HTTP Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195463#M1202300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Thanks~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Yichao Sun on Feb 24, 2009 8:26 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-parameter-in-http-post-or-http-class/m-p/5195463#M1202300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T07:26:23Z</dc:date>
    </item>
  </channel>
</rss>

