Internet PLC Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Internet PLC Forum
»
General
»
Technical support
»
Does the Nano-10 support HTTP REST (PUT or POST) ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Does the Nano-10 support HTTP REST (PUT or POST) ? (Read 11808 times)
Brett Hocking
Newbie
Posts: 4
Does the Nano-10 support HTTP REST (PUT or POST) ?
«
on:
July 09, 2013, 11:59:36 PM »
I would like the Nano to upload reports to a web server.
Is it possible to upload using REST PUT or POST ?
Can the Nano output the data in CSV format ?
thanks
Logged
support
Global Moderator
Hero Member
Posts: 3174
Re:Does the Nano-10 support HTTP REST (PUT or POST) ?
«
Reply #1 on:
July 10, 2013, 09:42:43 PM »
You can make a connection to a webserver using PRINT #4 "<TCPCONNECT xxx.xxx.xxx.xxx:yyyy>" and then use PRINT #4 and INPUT$(4) to communicate with the server. You can do GET or POST by formatting the string to be sent to the server according to the require protocol.
Typically if you write your own PHP handler it is easiest to handle data upload using HTTP GET command. We implemented this for our PLClog.com project (
http://www.plclog.com
)
Logged
Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Brett Hocking
Newbie
Posts: 4
Re:Does the Nano-10 support HTTP REST (PUT or POST) ?
«
Reply #2 on:
July 16, 2013, 08:57:30 PM »
Thank you for that information
I wonder if anyone else has been able to get the Nano-10 to talk to Xively ?
I haven't been able to get it working using some code from here that worked with Pachube.
Logged
Print
Pages: [
1
]
« previous
next »
Internet PLC Forum
»
General
»
Technical support
»
Does the Nano-10 support HTTP REST (PUT or POST) ?