# Writing to influx with simple HTTP call (newbie question)

**URL:** <https://community.influxdata.com/t/writing-to-influx-with-simple-http-call-newbie-question/17217>\
**Category:** Welcome & Getting Started\
**Tags:** influxdb\
**Created:** [December 15, 2020, 10:09am UTC](https://community.influxdata.com/t/writing-to-influx-with-simple-http-call-newbie-question/17217 "2020-12-15T10:09:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieleinaudi](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@danieleinaudi](https://community.influxdata.com/u/danieleinaudi)\
**Post date:** [December 15, 2020, 10:09am UTC](https://community.influxdata.com/t/writing-to-influx-with-simple-http-call-newbie-question/17217/1 "2020-12-15T10:09:17Z")

</div>

Hello. Newbie here, enthusiastic about using influxdb for home automation.  
I have been able write data to influxDB via CURL and using Grafana to display data.  
Now I would like to collect additional data from IoT devices. However, they can only call a simple URL when e.g. a switch gets turned on/off, but not use POST method.

Is there a way to write data to influx via a simple HTTP call, without using the POST method?  
I would like to turn this:

> curl -i -XPOST ‘[http://192.168.1.22:8086/write?db=home](http://192.168.1.22:8086/write?db=home)’ --data-binary ‘test temperature=31,humidity=11’

Into something like this:

> [http://192.168.1.22:8086/write?db=home](http://192.168.1.22:8086/write?db=home)’&data=test%20temperature=31,humidity=11

but I get a “Method Not Allowed” back from influxdb.

Is there a way to format such an HTTP call? Thanks for your help.
