# Data to server through http

**URL:** <https://community.teltonika.lt/t/data-to-server-through-http/4799>\
**Category:** Networking Solutions\
**Created:** [March 14, 2024, 3:24pm UTC](https://community.teltonika.lt/t/data-to-server-through-http/4799 "2024-03-14T15:24:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toufik](https://community.teltonika.lt/letter_avatar_proxy/v4/letter/t/e0b2c6/32.png) [@toufik](https://community.teltonika.lt/u/toufik)\
**Post date:** [March 14, 2024, 3:24pm UTC](https://community.teltonika.lt/t/data-to-server-through-http/4799/1 "2024-03-14T15:24:26Z")

</div>

I am trying to send data to a cloud storage, I get the data, but formatted weirdly,  
so for example I configured a data collector, with default value (JSON format etc…), I added data basic,  
I expected to receive :  
{  
“time”:1710424313,  
“local\_time”:“2024-03-14 14:51:53”,  
“fw”:“RUT9\_R\_00.07.06.6”,  
“name”:“ott2”,  
“id”:“4”  
}  
instead I received:  
{ ‘{“time”:1710424313,“local\_time”:“2024-03-1414:51:53”,“fw”:“RUT9\_R\_00.07.06.6”,“name”:“ott2”,“id”:“4”}’ : [‘’]}

instead of getting just the object, it is setting the object as a key, and the value would be [‘’]

---

<div class="post-metadata">

**Author:** ![toufik](https://community.teltonika.lt/letter_avatar_proxy/v4/letter/t/e0b2c6/32.png) [@toufik](https://community.teltonika.lt/u/toufik)\
**Post date:** [March 14, 2024, 5:14pm UTC](https://community.teltonika.lt/t/data-to-server-through-http/4799/2 "2024-03-14T17:14:09Z")

</div>

I added header Content-Type :application/json and it was somehow solved

---

<div class="post-metadata">

**Author:** ![Marija](https://community.teltonika.lt/user_avatar/community.teltonika.lt/marija/32/17132_2.png) [@Marija](https://community.teltonika.lt/u/Marija)\
**Post date:** [March 15, 2024, 5:56am UTC](https://community.teltonika.lt/t/data-to-server-through-http/4799/4 "2024-03-15T05:56:02Z")

</div>

Hello,

I believe that adding a header resolved the problem, right? If that was indeed the solution, don’t hesitate to ask for further assistance or support if needed.

Best Regards,

---

<div class="post-metadata">

**Author:** ![system](https://community.teltonika.lt/user_avatar/community.teltonika.lt/system/32/15707_2.png) [@system](https://community.teltonika.lt/u/system)\
**Post date:** [March 16, 2024, 9:56pm UTC](https://community.teltonika.lt/t/data-to-server-through-http/4799/5 "2024-03-16T21:56:27Z")

</div>

Closed on March 16, 2024, 9:56pm UTC

This topic was automatically closed 40 hours after the last reply. New replies are no longer allowed.
