<?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>HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49308/http-post-with-ncs-v1-0-0-rc4</link><description>Dear , 
 
 I just tried to run LTE-M/HTTP POST with NCS v1.0.0-rc4 (with nrf git fetch origin pull/943/head:branch1) 
 but, I COULD NOT POST any more: 
 
 It worked normal with the old version v0.4.0 
 1. when i used the same setup, i got error: 
 
 2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Oct 2019 14:17:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49308/http-post-with-ncs-v1-0-0-rc4" /><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/213451?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 14:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5174d2ec-0fca-49fa-bfca-f10f9e8a5621</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The solution to this is to set &lt;span&gt;CONFIG_NO_OPTIMIZATIONS to y, and increase the main stack size through&amp;nbsp;CONFIG_MAIN_STACK_SIZE or place it in the data section instead of on the stack by declaring and initializing it outside of the main function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/201704?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 00:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b508a2a-2d1b-49d5-affe-e028827b96e9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hmm.. That is really strange. I was able to recreate the error message. I tried to minimize the project&amp;nbsp;to try to locate the problem, and I eventually ended up with the following project, which was giving the same error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;net/socket.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;

int main(void)
{
     //char tmp_str2[2];
     char send_buf[4096];

     while (1) {
          
          }
	
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, if I set CONFIG_SIZE_OPTIMIZATION=y (and removed the optimize nothing config), then it worked fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will report the problem internally. In the mean time, I guess you have to declare&amp;nbsp;tmp_str as a temporary solution.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/201420?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 07:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08416125-5748-49e5-90c1-36b4a66141c2</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I understand it, not yet &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Mvh&lt;/p&gt;
&lt;p&gt;Hoang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/201071?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 21:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3aa47c3-82e1-4baa-b80c-e4cf1bebefe7</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the delay. The support staff is reduced during the summer holidays, and you may experience delayed answers. Have you been able to resolve this issue?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/200730?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 10:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a00e3cdc-4123-4e87-b7f4-4e3644334c94</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Dear Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ja, it works, but I got another &amp;quot;funny&amp;quot; error ( because I dont know why!!!)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I removed:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;printk(&amp;quot;Hello from start of main&amp;quot;);
     char tmp_str[MAXLINE + 1];
     snprintf(tmp_str,500,
		&amp;quot;$GPGGA,%02d%02d%02d.200,%8.3f,N,%09.3f,W,1,&amp;quot; 
		&amp;quot;12,1.0,0.0,M,0.0,M,,*&amp;quot;, 2019, 07, 23, 59.3033, 10.454);
     //printf(&amp;quot;tmp_string is: %s \n&amp;quot;,tmp_str); 
     &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and just ran:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void){

     printk(&amp;quot;Hello from start of main \n&amp;quot;);
     char send_buf[MAXLINE + 1];
     int send_data_len_post = snprintk(send_buf,
                                         500,
				         POST_TEMPLATE, HTTP_PATH,
				         HTTP_HOST, strlen(TEST_STRING),
				         TEST_STRING);

     printf(&amp;quot;send_buf is: %s \n&amp;quot;,send_buf);
     printk(&amp;quot;send err: %d\n\r&amp;quot;, send_data_len_post);
    
     //snprintk_post(&amp;quot;OMG whyyyyyyyyyyyy \n&amp;quot;); 
     while (1) {
          //5 seconds delay
          k_sleep(5000);
          
          }
   }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;it didnt work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SPM: NS image at 0xc000
SPM: NS MSP at 0x20024cf8
SPM: NS reset vector at 0xec1d
SPM: prepare to jump to Non-Secure image.
***** Booting Zephyr OS v1.14.99-ncs2 *****
Hello from start of main %
***** USAGE FAULT *****
  Illegal use of the EPSR
***** Hardware exception *****
Current thread ID = 0x20021e9c
Faulting instruction address = 0xec1c
Fatal fault in essential thread! Spinning...
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;then, I tried to add an extra variable (but i will not use it !!!!)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;char tmp[MAXLINE + 1];&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and, it works:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SPM: NS image at 0xc000
SPM: NS MSP at 0x20024cf8
SPM: NS reset vector at 0xec1d
SPM: prepare to jump to Non-Secure image.
***** Booting Zephyr OS v1.14.99-ncs2 *****
Hello from start of main 
send_buf is: POST /? HTTP/1.1

Host: 142.93.37.192

Connection: keep-alive

Content-type: application/x-www-form-urlencoded

Content-length: 19



111 from nRF9160 DK 
send err: 153
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I dont know why!!!????&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;mvh&lt;/p&gt;
&lt;p&gt;Hoang&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/200658?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 07:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb10d46-1162-4d2f-b6ec-ab49a32b29fd</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi Simon&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/49308/http-post-with-ncs-v1-0-0-rc4/200600"]CONFIG_NO_OPTIMIZATION=y in prj.conf[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ja, thats what i am looking for.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks so much&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mvh&lt;/p&gt;
&lt;p&gt;Hoang Nguyen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/200600?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 16:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe93b7f5-b254-4a19-9f4d-191179018eb2</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry, I was too quick to answer and gave you wrong information. The change that made it work was to set&amp;nbsp;CONFIG_NO_OPTIMIZATION=y in prj.conf. I am attaching main.c and prj.conf down below.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BSD_LIBRARY=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NETWORKING=y
CONFIG_NET_BUF_USER_DATA_SIZE=1
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_RAW_MODE=y
CONFIG_HEAP_MEM_POOL_SIZE=1024
# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_NO_OPTIMIZATIONS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;main.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;net/socket.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;uart.h&amp;gt;
#include &amp;lt;string.h&amp;gt;

#define MAXLINE 4096
#define HTTP_HOST &amp;quot;142.93.37.192&amp;quot;
#define HTTP_PATH &amp;quot;/&amp;quot;
#define TEST_STRING  &amp;quot;Hello from nRF9160 DK&amp;quot;

#define POST_TEMPLATE &amp;quot;POST %s? HTTP/1.1\r\n&amp;quot;\
		&amp;quot;Host: %s\r\n&amp;quot;\
		&amp;quot;Connection: keep-alive\r\n&amp;quot;\
	        &amp;quot;Content-type: application/x-www-form-urlencoded\r\n&amp;quot;\
		&amp;quot;Content-length: %d\r\n\r\n&amp;quot;\
		&amp;quot;%s&amp;quot;
int main(void)
{
     printk(&amp;quot;Hello from start of main&amp;quot;);
     char tmp_str[MAXLINE + 1];
     snprintf(tmp_str,500,
		&amp;quot;$GPGGA,%02d%02d%02d.200,%8.3f,N,%09.3f,W,1,&amp;quot; 
		&amp;quot;12,1.0,0.0,M,0.0,M,,*&amp;quot;, 2019, 07, 23, 59.3033, 10.454);
     //printf(&amp;quot;tmp_string is: %s \n&amp;quot;,tmp_str); 
     

     char send_buf[MAXLINE + 1];
     int send_data_len_post = snprintk(send_buf,
                                         500,
				         POST_TEMPLATE, HTTP_PATH,
				         HTTP_HOST, strlen(TEST_STRING),
				         TEST_STRING);

     printf(&amp;quot;send_buf is: %s \n&amp;quot;,send_buf);
     printk(&amp;quot;send err: %d\n\r&amp;quot;, send_data_len_post);
     while (1) {
          //5 seconds delay
          k_sleep(5000);
          
          }
	
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/200400?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 06:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fc3446b-12da-4cfd-8773-b5495dd7afae</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to use snprintk(), but it did NOT work, the same error came with me&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
tmp_string is: $GPGGA,2019072***** HARD FAULT *****
  Fault escalation (see below)
***** BUS FAULT *****
  Precise data bus error
  BFAR Address: 0x61000064
***** Hardware exception *****
Current thread ID = 0x61000000
Faulting instruction address = 0xd998
Fatal fault in ISR! Spinning...

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;can you send me the full setup. thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mvh&lt;/p&gt;
&lt;p&gt;Hoang Nguyen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/200362?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 21:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbbf2810-bb4a-4882-a880-4713ce5cf414</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try using&amp;nbsp;&lt;em&gt;snprintk()&lt;/em&gt; instead, that worked for me.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/199944?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 08:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37953c70-c10c-4933-b0e5-80b975a097bd</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried with a simple example to test snprintf() function. 1 with LTE and without LTE&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Without LTE:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;# LTE link control&lt;br /&gt;#CONFIG_LTE_LINK_CONTROL=y&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;net/socket.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;uart.h&amp;gt;
#include &amp;lt;string.h&amp;gt;

#define MAXLINE 4096
#define HTTP_HOST &amp;quot;142.93.37.192&amp;quot;
#define HTTP_PATH &amp;quot;/&amp;quot;
#define TEST_STRING  &amp;quot;Hello from nRF9160 DK&amp;quot;

#define POST_TEMPLATE &amp;quot;POST %s? HTTP/1.1\r\n&amp;quot;\
		&amp;quot;Host: %s\r\n&amp;quot;\
		&amp;quot;Connection: keep-alive\r\n&amp;quot;\
	        &amp;quot;Content-type: application/x-www-form-urlencoded\r\n&amp;quot;\
		&amp;quot;Content-length: %d\r\n\r\n&amp;quot;\
		&amp;quot;%s&amp;quot;
int main(void)
{

     char tmp_str[MAXLINE + 1];
     snprintf(tmp_str,500,
		&amp;quot;$GPGGA,%02d%02d%02d.200,%8.3f,N,%09.3f,W,1,&amp;quot; 
		&amp;quot;12,1.0,0.0,M,0.0,M,,*&amp;quot;, 2019, 07, 23, 59.3033, 10.454);
     printf(&amp;quot;tmp_string is: %s \n&amp;quot;,tmp_str); 
     

     char send_buf[MAXLINE + 1];
     int send_data_len_post = snprintf(send_buf,
				         500, 
				         POST_TEMPLATE, HTTP_PATH,
				         HTTP_HOST, strlen(TEST_STRING),
				         TEST_STRING);

     printf(&amp;quot;send_buf is: %s \n&amp;quot;,send_buf);
     printk(&amp;quot;send err: %d\n\r&amp;quot;, send_data_len_post);
     while (1) {
          //5 seconds delay
          k_sleep(5000);
          
          }
	
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it works,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
tmp_string is: $GPGGA,20190723.200,  59.303,N,00010.454,W,1,12,1.0,0.0,M,0.0,M,,* 
send_buf is: POST /? HTTP/1.1

Host: 142.93.37.192

Connection: keep-alive

Content-type: application/x-www-form-urlencoded

Content-length: 21



Hello from nRF9160 DK 
send err: 155&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and Now, without LTE:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;# LTE link control&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_LTE_LINK_CONTROL=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
tmp_string is: $GPGGA,201907***** HARD FAULT *****
  Fault escalation (see below)
***** BUS FAULT *****
  Precise data bus error
  BFAR Address: 0x61000064
***** Hardware exception *****
Current thread ID = 0x61000000
Faulting instruction address = 0xd998
Fatal fault in ISR! Spinning...
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;snprintf() and LTE_LINK_CONTROL conflict !?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mvh&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hoang Nguyen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/199778?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 12:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145160b1-d457-4143-8d0f-df59717ce7d6</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Dear Simon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried with your suggestion: ncs v1.0.0&lt;/p&gt;
&lt;p&gt;and your example: ( change to my webserver address)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; char send_buf[] = &amp;quot;POST /? HTTP/1.1\r\n&amp;quot;\
		&amp;quot;Host: 142.93.37.192\r\n&amp;quot;\
		&amp;quot;Connection: keep-alive\r\n&amp;quot;\
	    &amp;quot;Content-type: application/x-www-form-urlencoded\r\n&amp;quot;\
		&amp;quot;Content-length: 50\r\n\r\n&amp;quot;\
		&amp;quot;hng12 34 566 678899 01233 345678 99876543 2765432654&amp;quot;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and it works,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;your code, you did NOT use function snprintf()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;char send_buf[MAXLINE + 1];
	      
int send_data_len_post = snprintf(send_buf,
				         500, 
				         POST_TEMPLATE, HTTP_PATH,
				         HTTP_HOST, strlen(PostString),
				         PostString);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;snprintf() does NOT work !!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to use snprintf() because I want to assign my &amp;quot;PostString&amp;quot; to send_buf()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am confusing: why snprintf() does NOT work? if i use your suggestion, how can i assign my data to send_buf()&lt;/p&gt;
&lt;p&gt;Thanks so much,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yeah, 1 more thing, about&amp;nbsp;&lt;span&gt;NCS v1.0.0-rc4, I will tell you why I used this version: We ( my company) got the support from Nordicsemi and&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bj&amp;oslash;rn Kvaale&lt;/a&gt;&amp;nbsp;came to help us. and we tried ncs v1.0.0, asset_tracker DIDNT work, it didnt show the real data of GPS,&amp;nbsp;so Bj&amp;oslash;rn suggested use ncs v.1.0.0-rc4, then asset_tracker WORKs.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hoang&amp;nbsp; Nguyen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/199654?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 06:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:925bada3-c9fa-4e35-9b22-d9a53d6a66f3</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi @Simon&lt;/p&gt;
&lt;p&gt;Thanks so much, I just backed from vocation, I will try your suggestion and contact with you soon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mvh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hoang Nguyen&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/197086?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 11:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32dc1989-a259-4fbb-ac7a-8b6756574e37</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was able to post to a webserver, with ncs v1.0.0 and modem v1.0.0. Could you test my attached example?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-556d3e7358de40bea5cced168a993885/http_5F00_post.zip"&gt;devzone.nordicsemi.com/.../http_5F00_post.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTP POST with NCS v1.0.0-rc4</title><link>https://devzone.nordicsemi.com/thread/196976?ContentTypeID=1</link><pubDate>Sun, 07 Jul 2019 20:01:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a2acae-b1da-41a3-b074-99f64c26d9a0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the long delay. I am currently looking into your issue and will try to provide you with an answer as soon as possible.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>