<?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 Re: Problem with HTTP_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954423#M945082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem: if I send the parameters via http_get, they go through, but both http_post and http_put_component fail to send the parameters. How did you solve your problem. I'm working with release 4.6c and I'm going mad because I can't find a solution for my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer &amp;amp; regards&lt;/P&gt;&lt;P&gt;Mischa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2009 10:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-19T10:08:45Z</dc:date>
    <item>
      <title>Problem with HTTP_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954420#M945079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client has SAP version 4.6c.&lt;/P&gt;&lt;P&gt;I'm trying to send 2 parameters (not XML, just 2 values) from ABAP to website (http://99.9.99.99:8500) using FM HTTP_POST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I executed the following command from web browser, it returns back the values I send:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://99.9.99.99:8500?par1=test&amp;amp;par2=123" target="test_blank"&gt;http://99.9.99.99:8500?par1=test&amp;amp;par2=123&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The browser returns:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Received test and 123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I execute my ABAP program using HTTP_POST, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'par1=' str INTO t_request_body-body.&lt;/P&gt;&lt;P&gt;APPEND t_request_body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'par2=' int INTO t_request_body-body.&lt;/P&gt;&lt;P&gt;APPEND t_request_body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'text/html'  TO w_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HTTP_HEADERS_CREATE'&lt;/P&gt;&lt;P&gt;     EXPORTING  &lt;/P&gt;&lt;P&gt;          pi_content_type = w_content&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          pt_http_headers = t_request_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HTTP_POST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          absolute_uri                = uri&lt;/P&gt;&lt;P&gt;          request_entity_body_length  = 300&lt;/P&gt;&lt;P&gt;          blankstocrlf                = 'X'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          status_code                 = status_code&lt;/P&gt;&lt;P&gt;          status_text                 = status_text&lt;/P&gt;&lt;P&gt;          response_entity_body_length = len&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          request_entity_body         = t_request_body&lt;/P&gt;&lt;P&gt;          request_headers             = t_request_header&lt;/P&gt;&lt;P&gt;          response_entity_body        = t_response_body&lt;/P&gt;&lt;P&gt;          response_headers            = t_response_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return internal table t_response_body contain only the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Received and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems the connection is good, but the website coundn't receive my parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 19:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954420#M945079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T19:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HTTP_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954421#M945080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
If I executed the following command from web browser, it returns back the values I send:

http://99.9.99.99:8500?par1=test&amp;amp;par2=123
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means , the website can handle http GET as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using the complete url &lt;A href="http://99.9.99.99:8500?par1=test&amp;amp;par2=123" target="test_blank"&gt;http://99.9.99.99:8500?par1=test&amp;amp;par2=123&lt;/A&gt; with the HTTP_GET FM or with HTTP_POST without sending the parameters in the request body but with url&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 08:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954421#M945080</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-31T08:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HTTP_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954422#M945081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I solved this problem by using another FM 'HTTP_PUT_COMPONENT' , the site could receive my parameters in the component_data internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954422#M945081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HTTP_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954423#M945082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem: if I send the parameters via http_get, they go through, but both http_post and http_put_component fail to send the parameters. How did you solve your problem. I'm working with release 4.6c and I'm going mad because I can't find a solution for my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer &amp;amp; regards&lt;/P&gt;&lt;P&gt;Mischa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 10:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-http-post/m-p/3954423#M945082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-19T10:08:45Z</dc:date>
    </item>
  </channel>
</rss>

