<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF9160 HTTPS Client Example Modification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74361/nrf9160-https-client-example-modification</link><description>Hello All, 
 I am working on NRF9160. I was checking the HTTPS_CLIENT Example. But in my application I wanted to use the link that has header as well. How can I modify the existing example that it work for me. I am struggling to find the resources to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Apr 2021 12:26:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74361/nrf9160-https-client-example-modification" /><item><title>RE: NRF9160 HTTPS Client Example Modification</title><link>https://devzone.nordicsemi.com/thread/307020?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde504b5-c7ef-4d1a-818e-b47d772f8c6e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Did you install NCS manually or through the Toolchain Manager?&lt;/p&gt;
&lt;p&gt;If you are using the Toolchain Manager, you should install the correct version of the toolchain, and open the terminal from the Toolchain Manager.&lt;/p&gt;
&lt;p&gt;If you installed the toolchain manually, you must ensure that you have the correct version of all the tools yourself.&lt;/p&gt;
&lt;p&gt;You can then export a Zephyr CMake package to let your applications find the correct toolchain: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/guides/zephyr_cmake_package.html#cmake-pkg"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/guides/zephyr_cmake_package.html#cmake-pkg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 HTTPS Client Example Modification</title><link>https://devzone.nordicsemi.com/thread/307007?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a575a53-e30a-4a4b-adb8-f7d022a3ae3a</guid><dc:creator>Waqas Qammar</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I was using v1.4.2 and found out the modem library was developed after this version. I have updated the version to 1.5.1 and now when I am compiling I was getting&amp;nbsp; error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;["Key 'module_ext_root' was not defined. Path: '/build/settings'"]&lt;/p&gt;
&lt;p&gt;ERROR: Malformed &amp;quot;build&amp;quot; section in file:&lt;br /&gt; D:/work-freelance/JAN/Firmware/ncs/nrf/zephyr/module.yml&lt;/p&gt;
&lt;p&gt;&amp;lt;SchemaError: error code 2: Schema validation failed:&lt;/p&gt;
&lt;p&gt;- Key &amp;#39;module_ext_root&amp;#39; was not defined. Path: &amp;#39;/build/settings&amp;#39;.: Path: &amp;#39;/&amp;#39;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/app_5F00_https_5F00_error.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 HTTPS Client Example Modification</title><link>https://devzone.nordicsemi.com/thread/306870?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 16:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda89765-b2bc-4341-9282-4959a72489ab</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="waqas_qammar"]also can I use this example without certificate? what should I need to comment out so it can work may be with simple http or without certificate?[/quote]
&lt;p&gt;&amp;nbsp;Do you want TLS or not?&lt;/p&gt;
&lt;p&gt;For TLS, you must have at least a CA certificate provisioned to the modem.&lt;/p&gt;
&lt;p&gt;But, if you don&amp;#39;t want TLS, you must change the IPPROTO_TLS_1_2 to IPPROTO_TCP, and comment out the calls to cert_provison (not strictly necessary, you will simply not use them) and tls_setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 HTTPS Client Example Modification</title><link>https://devzone.nordicsemi.com/thread/306682?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 06:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0f3e2c-6412-4f1f-ad68-60295fc231f9</guid><dc:creator>Waqas Qammar</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thanks for your reply,&lt;/p&gt;
&lt;p&gt;also can I use this example without certificate? what should I need to comment out so it can work may be with simple http or without certificate?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 HTTPS Client Example Modification</title><link>https://devzone.nordicsemi.com/thread/306511?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 11:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33fa1934-8059-4e83-ac38-895a592bf642</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You want to modify the HTTP_HEAD macro. The path &amp;quot;/u/123456789&amp;quot; replaces the &amp;quot;/&amp;quot; on the first line, the host &amp;quot;api.abc.com&amp;quot; replaces &amp;quot;www.google.com&amp;quot; on the second line.&lt;/p&gt;
&lt;p&gt;The accept and t headers should be added to their own lines, but should be above the &amp;quot;Connection&amp;quot; header (or you need to edit the line ending to only har \r\n, the head ends with \r\n\r\n).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>