# Http Service sends wrong context application type

**URL:** <https://community.dreamfactory.com/t/http-service-sends-wrong-context-application-type/5209>\
**Category:** Connecting to Web Services\
**Tags:** rest\
**Created:** [July 22, 2020, 5:18pm UTC](https://community.dreamfactory.com/t/http-service-sends-wrong-context-application-type/5209 "2020-07-22T17:18:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dx4](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dx4/32/1322_2.png) [@dx4](https://community.dreamfactory.com/u/dx4)\
**Post date:** [July 22, 2020, 5:18pm UTC](https://community.dreamfactory.com/t/http-service-sends-wrong-context-application-type/5209/1 "2020-07-22T17:18:51Z")

</div>

I created a HTTP remote service through the open source DreamFactory. I encountered a major problem when testing the application.

When I directly send GET and POST requests to the service (not through DF) the context type received is the correct one : application/json

However, when I send the same request via the DF, the context type received is application/x-www-form-urlencoded.

It’s causing problems with my application since it expects application/json type of request. How can I fix that?

---

<div class="post-metadata">

**Author:** ![abhishek.pandey](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@abhishek.pandey](https://community.dreamfactory.com/u/abhishek.pandey)\
**Post date:** [July 31, 2020, 4:11pm UTC](https://community.dreamfactory.com/t/http-service-sends-wrong-context-application-type/5209/2 "2020-07-31T16:11:08Z")

</div>

Hi @dx4

It is because the keys and values are encoded in key-value tuples separated by `'&'` , with a `'='` between the key and the value when you send it via DreamFactory.

In your GET/POST requests, you can add an additional header field called ‘content-type’ and set the value to application/json. That should work.

KEY - content-type  
VALUE - application/json
