<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ultiroam.com/index.php?action=history&amp;feed=atom&amp;title=HTTP_API_-_FAQ</id>
	<title>HTTP API - FAQ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ultiroam.com/index.php?action=history&amp;feed=atom&amp;title=HTTP_API_-_FAQ"/>
	<link rel="alternate" type="text/html" href="https://wiki.ultiroam.com/index.php?title=HTTP_API_-_FAQ&amp;action=history"/>
	<updated>2026-04-17T00:33:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.ultiroam.com/index.php?title=HTTP_API_-_FAQ&amp;diff=3658&amp;oldid=prev</id>
		<title>Administrator at 22:46, 1 May 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.ultiroam.com/index.php?title=HTTP_API_-_FAQ&amp;diff=3658&amp;oldid=prev"/>
		<updated>2024-05-01T22:46:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== How can you specify a port for sending SMS? ====&lt;br /&gt;
When you need to specify a port for sending SMS, you can set port parameter in the SMS sending request. If you don’t need to send SMS through a specific port, port parameter is not necessary.&lt;br /&gt;
&lt;br /&gt;
==== How to match an SMS sending result with an SMS sending request? ====&lt;br /&gt;
It is advised to use user_id in the SMS sending request. You can use different user id when SMS is sent to a different telephone number, and then SMS sending result will also carry this user id. Each user id needs to be unique, and generally it is changed in an increasing order.&lt;br /&gt;
&lt;br /&gt;
==== How fast can a SMS be sent? ====&lt;br /&gt;
It takes about 5 to 8 seconds to send a SMS message on a GSM gateway, and about 2 to 4 seconds on a LTE gateway. The time depends on the GSM network quality. When the GSM network is in a bad condition, it may take about 1 minute.&lt;br /&gt;
&lt;br /&gt;
==== How can you get SMS delivery status? ====&lt;br /&gt;
Generally, it is not necessary to query delivery status, as delivery status is included in SMS sending Result. But if you want to control the SMS delivery, please see the following:&lt;br /&gt;
&lt;br /&gt;
SMS delivery status is received by gateway in unspecific time.   It is connected with an SMS sending result by a ref_id. And it is better to query delivery status after SENT_OK is returned. For a long SMS message which will be divided into 3 smaller SMS segments, if the first ref_id in SMS sending result is 0 and those of other two SMS segments are 1 and 2 respectively, at least 3 delivery statuses will be received, carrying ref_id 0, 1 and 2 respectively.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How can you disable SMS delivery status?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Set the value of ‘request_status_report’parameter into ‘false’ in the SMS sending request.&lt;br /&gt;
&lt;br /&gt;
==== How to send HTTP(s) request in the program? ====&lt;br /&gt;
C/C++ and PHP can use libcurl for sending HTTP(s) request. The parameter in libcurl is almost the same in curl utility.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|curl&lt;br /&gt;
|libcurl&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-k&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CURLOPT_SSL_VERIFYPEER,&lt;br /&gt;
&lt;br /&gt;
CURLOPT_SSL_VERIFYHOST,&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-u&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CURLOPT_USERPWD&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;--anyauth&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CURLOPT_HTTPAUTH&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-H&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CURLOPT_HTTPHEADER&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;-d&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CURLOPT_POSTFIELDSCURLOPT_POSTFIELDS&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
PHP example:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;$curl = curl_init($url);&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY ) ; curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;curl_setopt($curl, CURLOPT_HTTPHEADER, array(&amp;quot;Content-type: application/json;&amp;quot;));&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;curl_setopt($curl, CURLOPT_USERPWD, &amp;quot;admin:admin&amp;quot;); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $content); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
C#, JAVA, PYTHON and other programming language have their own lib for sending http request, please check the programming manual for help.&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>