OSCAT Forum

network.lib => BECKHOFF => Thema gestartet von: bartmarchand am 12. Januar 2018, 20:12:16

Titel: Connection with Influxdb - cURL
Beitrag von: bartmarchand am 12. Januar 2018, 20:12:16
Hello,

I'm trying to connect with Influxdb HTTP API.
The working cURL command on my debian system is: curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'

I've tried the same command in the http demo, but there is a http get 252.
What is the syntax for using cURL?
Thanks
Titel: Re: Connection with Influxdb - cURL
Beitrag von: peewit am 13. Januar 2018, 22:56:04
hello

in the program http_demo the block http_get is used.

the module http_get can only execute an http-get command but no http-post command.