# Authentication request works in x-www-form-urlencoded but not raw

**URL:** <https://community.postman.com/t/authentication-request-works-in-x-www-form-urlencoded-but-not-raw/4839>\
**Category:** Help Hub\
**Created:** [April 4, 2019, 4:21am UTC](https://community.postman.com/t/authentication-request-works-in-x-www-form-urlencoded-but-not-raw/4839 "2019-04-04T04:21:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f4malfi](https://avatars.discourse-cdn.com/v4/letter/f/ad7895/32.png) [@f4malfi](https://community.postman.com/u/f4malfi)\
**Post date:** [April 4, 2019, 4:21am UTC](https://community.postman.com/t/authentication-request-works-in-x-www-form-urlencoded-but-not-raw/4839/1 "2019-04-04T04:21:06Z")

</div>

I am trying to authenticate using the raw content format type using the same credentials that I am entering in for my POST request via the x-www-form-urlencoded but I keep receiving a 415 Unsupported Media Type response. Does anyone know what I might be missing in this request?

I can’t post the actual credentials for security sake but I am using the same HTTP URL, it is a POST request, I have tried switching the content type to all of the choices (text, json, xml, javascript etc.) with no luck.

I am more curious if I am not adding something into my raw request that is inherently added via the ‘x-www.form-urlencoded’ content format type? Or if there is something else I am clearly missing.

Thanks

---

<div class="post-metadata">

**Author:** ![Whersh](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@Whersh](https://community.postman.com/u/Whersh)\
**Post date:** [April 8, 2019, 7:08pm UTC](https://community.postman.com/t/authentication-request-works-in-x-www-form-urlencoded-but-not-raw/4839/2 "2019-04-08T19:08:06Z")

</div>

[https://learning.getpostman.com/docs/postman/sending\_api\_requests/requests/#raw](https://learning.getpostman.com/docs/postman/sending_api_requests/requests/#raw)

When you are sending “RAW” data type, are you selecting the appropriate Content-Type?  
You are able to set it via a drop down.

 ![ContentTypeRAW](https://us1.discourse-cdn.com/getpostman/original/3X/1/8/18208716edd32c7e43a78adb76ab5f6ab1a502a4.png)
