# httpPost() not sending content in 7.9.17

**URL:** <https://forum.inductiveautomation.com/t/httppost-not-sending-content-in-7-9-17/82406>\
**Category:** Ignition\
**Created:** [November 28, 2023, 12:03am UTC](https://forum.inductiveautomation.com/t/httppost-not-sending-content-in-7-9-17/82406 "2023-11-28T00:03:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavi\_Sen](https://avatars.discourse-cdn.com/v4/letter/k/a88e57/32.png) [@Kavi\_Sen](https://forum.inductiveautomation.com/u/Kavi_Sen)\
**Post date:** [November 28, 2023, 12:03am UTC](https://forum.inductiveautomation.com/t/httppost-not-sending-content-in-7-9-17/82406/1 "2023-11-28T00:03:03Z")

</div>

I'm using 7.9.17 and am trying to post to a URL using httpPost() - [system.net.httpPost - Ignition User Manual 7.9 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC79/system.net.httpPost)

```auto
val = system.net.httpPost("http://localhost:5000/available_tasks", {"status":"ready"})

```

However in my server, I get the following message as traceback:

```auto
b'' "
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

```

I think it is trying to tell me that the contents of the message is empty.  
What is the mistake I am making?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 28, 2023, 12:09am UTC](https://forum.inductiveautomation.com/t/httppost-not-sending-content-in-7-9-17/82406/2 "2023-11-28T00:09:39Z")

</div>

you are passing URL params, is it possible your server is expecting post data instead?

Try adding keyword args and providing data explicitly:

```auto
val = system.net.httpPost(url="http://localhost:5000/available_tasks", postData={"status":"ready"})

```

---

<div class="post-metadata">

**Author:** ![Kavi\_Sen](https://avatars.discourse-cdn.com/v4/letter/k/a88e57/32.png) [@Kavi\_Sen](https://forum.inductiveautomation.com/u/Kavi_Sen)\
**Post date:** [November 28, 2023, 6:05pm UTC](https://forum.inductiveautomation.com/t/httppost-not-sending-content-in-7-9-17/82406/3 "2023-11-28T18:05:14Z")

</div>

Thanks!  
There was a bit more that was needed to solve this.  
Solution:

```auto
json_str = system.util.jsonEncode({"status":"ready"})
val = system.net.httpPost(url="http://localhost:5000/available_tasks", postData=json_str, contentType="application/json")

```
