<?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>serial_lte_modem HTTP example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66393/serial_lte_modem-http-example</link><description>Hi, 
 I&amp;#39;m trying to use the nRF91 as a Modem for an Arduino. Is there some example on how to use the AT commands of the serial_lte_modem sample to send a HTTP (or at least TCP) request to a server? 
 Best, trembel</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 09:30:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66393/serial_lte_modem-http-example" /><item><title>RE: serial_lte_modem HTTP example</title><link>https://devzone.nordicsemi.com/thread/272005?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 09:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2b871af-75db-4764-a984-37b7ead8be8a</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Trembel,&lt;br /&gt;&lt;br /&gt;There is now a &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2993" rel="noopener noreferrer" target="_blank"&gt;Pull request available for the &lt;strong&gt;draft&lt;/strong&gt; of the Serial LTE modem application documentation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For TCPsend cpmmand:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2993" rel="noopener noreferrer" target="_blank"&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5543.pastedimage1601371830287v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial_lte_modem HTTP example</title><link>https://devzone.nordicsemi.com/thread/271850?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 15:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6996d519-2f42-4db1-9929-bd7c4ae4d079</guid><dc:creator>trembel</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks for your response. What do I type into &amp;lt;datatype&amp;gt;?&lt;br /&gt;Assuming I want to make a get request to google, would the following be the &amp;quot;correct&amp;quot; command order?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT#XSOCKET=1,1,0
AT#XSOCKET?
AT#XCONNECT=&amp;quot;172.217.168.3&amp;quot;,80

at#xtcpcli=1,&amp;quot;172.217.168.3&amp;quot;,80

AT#XTCPSEND=&amp;lt;datatype&amp;gt;,&amp;quot;GET / HTTP/1.0&amp;quot;

AT#XTCPRECV=256

AT#XSOCKET=0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;trembel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial_lte_modem HTTP example</title><link>https://devzone.nordicsemi.com/thread/271654?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 06:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d1e9132-fcd4-40a1-8360-26b9cf053f8f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Trembel,&lt;br /&gt;&lt;br /&gt;If you are running NCS v1.3.1 you should have more or less all the updates and features of the Serial LTE Modem application.&lt;br /&gt;We are working on improving the documentation of the SLM application.&lt;br /&gt;&lt;br /&gt;You can use the commands &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/README.html#bsd-socket-at-commands" rel="noopener noreferrer" target="_blank"&gt;given here,&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I recommend that you enable&amp;nbsp;&lt;code&gt;&lt;span&gt;CONFIG_SLM_TCP_PROXY=y in prj.conf:&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT#XSOCKET=1,1,0
AT#XSOCKET?
AT#XCONNECT=&amp;quot;&amp;lt;ip_address&amp;gt;&amp;quot;,50001

at#xtcpcli=1,&amp;quot;&amp;lt;ip_address&amp;gt;&amp;quot;,50001
AT#XTCPSEND=&amp;lt;datatype&amp;gt;,&amp;lt;data&amp;gt;
AT#XTCPRECV[=&amp;lt;length&amp;gt;]

AT#XSOCKET=0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Martin&amp;nbsp; L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>