Can't run the curl demo


#1

Hi,

I’m trying to use smssync,
I’d like first to make the demo working,
I add copied the code from the developer page into a file ( 755 ) demo.php, I only added <?php on the first line

curl -v -H "Expect: " -X POST http://localhost/iot/demo.php -F “from=+000-000-0000” -F “message=sample text message” -F “secret=123456” -F “device_id=1” -F “sent_timestamp=123456789” -F “message_id=80”

  • About to connect() to localhost port 80 (#0)
  • Trying ::1… Connexion refusée
  • Trying 127.0.0.1… connected
  • Connected to localhost (127.0.0.1) port 80 (#0)

POST /iot/demo.php HTTP/1.1
User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
Host: localhost
Accept: /
Content-Length: 680
Content-Type: multipart/form-data; boundary=----------------------------61b3b2e80dcd

< HTTP/1.1 200 OK
< X-Powered-By: PHP/5.4.42-1~dotdeb+6.4
< Content-type: text/html
< Transfer-Encoding: chunked
< Date: Thu, 31 Dec 2015 10:29:52 GMT
< Server: lighttpd/1.4.28
<

  • Connection #0 to host localhost left intact
  • Closing connection #0

looks like nothing happend
AM i forgetting something ?
is there something to add in the demo.php to make it working ? I only see functions but nowhere a line to call theses functions,

thanks for your help

jean-louis