<?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>Question Re: HTTP Request failed error in Netweaver Gateway using HTML5 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845819#M3533272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : http_client TYPE REF TO IF_HTTP_CLIENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD http_client-&amp;gt;request-&amp;gt;set_header_field&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp; = 'Access-Control-Allow-Origin'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = '*'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 09:58:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-19T09:58:48Z</dc:date>
    <item>
      <title>HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaq-p/9845812</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;This is the error i'm getting when i tried in the browser. I was trying to access the index.html page created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Odata service has one parameter. Kindly help me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chrome Stats using F12&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326321" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326322" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 06:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaq-p/9845812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T06:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845813#M3533266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you test odata service in gateway client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 06:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845813#M3533266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T06:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845814#M3533267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya using Tcode&amp;nbsp;&amp;nbsp;&amp;nbsp; /IWFND/GW_CLIENT&amp;nbsp;&amp;nbsp;&amp;nbsp; i tested the odata service its working fine. But im not able to consume in the browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845814#M3533267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T07:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845815#M3533268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you click on response in browser it is opening in xml page or not ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845815#M3533268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T07:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845816#M3533269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its opening the XMl i think the error is with Cross Origin not enabled in Gateway Server.?? Can you help me regarding this. Please find the attachment . It is showing null. Can you make this one true&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326354" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326355" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845816#M3533269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T07:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845817#M3533270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see below post it may helpful &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/1947809"&gt;http://scn.sap.com/thread/1947809&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 08:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845817#M3533270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T08:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845818#M3533271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sry it didnt helped us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 09:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845818#M3533271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845819#M3533272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : http_client TYPE REF TO IF_HTTP_CLIENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD http_client-&amp;gt;request-&amp;gt;set_header_field&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp; = 'Access-Control-Allow-Origin'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = '*'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 09:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845819#M3533272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Request failed error in Netweaver Gateway using HTML5</title>
      <link>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845820#M3533273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What also might be the issue, I see you are using Chrome. When your OData service is on your server, and your front end code is on your localhost (you have to use a localhost if you are going to develop locally on your computer first), then you have to open chrome in a different mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Close all your open chrome windows. Create a shortcut on your desktop, right click and choose 'properties' At the 'target', add --disable-web-security.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326542" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open your shortcut, chrome will give you a warning but you can ignore that. By default chrome blocks cross origin requests and this causes issues when you want to call your service from your localhost. By opening chrome with the web security disable, you can make cross origin requests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 11:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/http-request-failed-error-in-netweaver-gateway-using-html5/qaa-p/9845820#M3533273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T11:06:06Z</dc:date>
    </item>
  </channel>
</rss>

