# Problems with Talk2M DMWeb API through system.net.httpClient and system.net.httpPost

**URL:** <https://forum.inductiveautomation.com/t/problems-with-talk2m-dmweb-api-through-system-net-httpclient-and-system-net-httppost/40441>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [November 9, 2020, 11:25am UTC](https://forum.inductiveautomation.com/t/problems-with-talk2m-dmweb-api-through-system-net-httpclient-and-system-net-httppost/40441 "2020-11-09T11:25:24Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![betti.francesco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/betti.francesco/32/6309_2.png) [@betti.francesco](https://forum.inductiveautomation.com/u/betti.francesco)\
**Post date:** [November 9, 2020, 2:37pm UTC](https://forum.inductiveautomation.com/t/problems-with-talk2m-dmweb-api-through-system-net-httpclient-and-system-net-httppost/40441/7 "2020-11-09T14:37:48Z")

</div>

Right! I forgot to encode the data object -\_- This will solve the problem when using the httpClient:

```python
import urllib
data=urllib.urlencode({"t2mdevid":devId,"t2mtoken":t2mtoken})

```

Anyway, I can’t get the httpPost to work

---

_[View the full topic](https://forum.inductiveautomation.com/t/problems-with-talk2m-dmweb-api-through-system-net-httpclient-and-system-net-httppost/40441)._
