<?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: CL_HTTP_CLIENT strips duplicate parameters from URI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780975#M1678330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I was in the fortunate position of designing both sides of the solution&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I would change the request from a GET to a POST, because you want to "CREATE" something.&lt;/P&gt;&lt;P&gt;This would also have the advantage, that you can fill the request body with whatever you want (XML, JSON, plain text), even dublicate parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 10:11:35 GMT</pubDate>
    <dc:creator>UweFetzer_se38</dc:creator>
    <dc:date>2013-06-18T10:11:35Z</dc:date>
    <item>
      <title>CL_HTTP_CLIENT strips duplicate parameters from URI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780972#M1678327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue calling a URL which contains duplicate parameters because CL_HTTP_CLIENT is stripping out the duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The URI is in the form like:&lt;/P&gt;&lt;P&gt;?&amp;amp;action="CREATE"&amp;amp;type="Project"&amp;amp;id="MA-00178"&amp;amp;actype="Vendor"&amp;amp;acid="0000100020"&amp;amp;actype="ProjectAppropriation"&amp;amp;acid="MA00178"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the request leaves SAP it's in form:&lt;/P&gt;&lt;P&gt;?&amp;amp;action="CREATE"&amp;amp;type="Project"&amp;amp;id="MA-00178"&amp;amp;actype="ProjectAppropriation"&amp;amp;acid="MA00178"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've debugged down to a level within the class where the parameters are taken from the URI and formatted into a table of name value pairs and is then passed down to a C level routine which I can only assume deletes duplicates from the table before reconstructing the URI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to prevent this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;BR /&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 01:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780972#M1678327</guid>
      <dc:creator>Pyc</dc:creator>
      <dc:date>2012-06-14T01:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HTTP_CLIENT strips duplicate parameters from URI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780973#M1678328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="19868" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get to the bottom of this? I think I have debugged into the same bit of code and can see a system-call that seems to overwrite any duplicate/subsequent URL query parameters with the first value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to find a general agreement in "HTTP Land" how duplicate query parameters should be handled but there is a discussion here: &lt;A href="http://stackoverflow.com/questions/1746507/authoritative-position-of-duplicate-http-get-query-keys"&gt;http://stackoverflow.com/questions/1746507/authoritative-position-of-duplicate-http-get-query-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 05:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780973#M1678328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-18T05:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HTTP_CLIENT strips duplicate parameters from URI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780974#M1678329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the detail of this is lost is a client email system, but in the end I believe the solution was to ensure that parameter names were unique. I was in the fortunate position of designing both sides of the solution and so could work around the limitation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the stripping happens down in C you can't do much other than request SAP's help. Given the variety of responses in your link I can imagine that SAP may do it on purpose 'to be safe' or 'consistent' - i.e. regardless of the receiving system the solution will work consistently, unfortunately consistently with duplicates removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 07:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780974#M1678329</guid>
      <dc:creator>Pyc</dc:creator>
      <dc:date>2013-06-18T07:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HTTP_CLIENT strips duplicate parameters from URI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780975#M1678330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I was in the fortunate position of designing both sides of the solution&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I would change the request from a GET to a POST, because you want to "CREATE" something.&lt;/P&gt;&lt;P&gt;This would also have the advantage, that you can fill the request body with whatever you want (XML, JSON, plain text), even dublicate parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 10:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780975#M1678330</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2013-06-18T10:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HTTP_CLIENT strips duplicate parameters from URI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780976#M1678331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a note about duplicate parameters being overwritten, see SAP note 1856171.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://service.sap.com/sap/support/notes/1856171"&gt;https://service.sap.com/sap/support/notes/1856171&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 16:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-strips-duplicate-parameters-from-uri/m-p/8780976#M1678331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-18T16:11:25Z</dc:date>
    </item>
  </channel>
</rss>

