# HTTP Request not sending headers

**URL:** <https://forum.uipath.com/t/http-request-not-sending-headers/17762>\
**Category:** Help\
**Tags:** webapi, activities\
**Created:** [December 15, 2017, 7:53pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762 "2017-12-15T19:53:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taylor](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/taylor/32/9694_2.png) [@Taylor](https://forum.uipath.com/u/Taylor)\
**Post date:** [December 15, 2017, 7:53pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/1 "2017-12-15T19:53:40Z")

</div>

#### Scenario:

I’ve created a HTTP request and set some headers and UiPath doesn’t seem to be sending the headers with the request.

#### Steps to reproduce:

1. Create HTTP Request activity
2. Set as POST request to URL with body as JSON
3. Add headers (Cookie, User-Agent etc.)
4. Inspect request using Fiddler

 ![UiPath](https://global.discourse-cdn.com/uipath/original/2X/8/89a99e16c68f67da49217d345db2a6f94ce6aee7.png)

Fiddler shows the below:

```
    POST https://example.com/request.service HTTP/1.1
    Pragma: no-cache
    Accept: application/json
    User-Agent: RestSharp/105.0.1.0
    Content-Type: application/json
    Content-Length: 319
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive

```

#### Current Behavior:

Headers not being sent

#### Expected Behavior:

Headers should be sent

Last stable version: 2017.1.6522  
OS Version: Windows 10 (1709)

---

<div class="post-metadata">

**Author:** ![siddu509](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/siddu509/32/60647_2.png) [@siddu509](https://forum.uipath.com/u/siddu509)\
**Post date:** [December 18, 2017, 5:53pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/2 "2017-12-18T17:53:35Z")

</div>

Hey Taylor,

I see you are trying to create the parameters as arguments. But when your create a http request you have the option to include the header parameters in the http request itself rather than passing as arguments (I just provided the fields snippet for your reference below). Try passing those values in these parameters and try hopefully it should work.

 ![image](https://global.discourse-cdn.com/uipath/original/2X/6/69905d18dcd86cdbec1d20da50132b4574109ac8.png)

Best,  
Siddartha

---

<div class="post-metadata">

**Author:** ![Taylor](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/taylor/32/9694_2.png) [@Taylor](https://forum.uipath.com/u/Taylor)\
**Post date:** [December 18, 2017, 8:43pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/3 "2017-12-18T20:43:22Z")

</div>

Are you referring to the wizard where you can add headers/parameters etc? That only adds the headers to the same collection that you show in your screenshot.

---

<div class="post-metadata">

**Author:** ![tkein](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tkein/32/178390_2.png) [@tkein](https://forum.uipath.com/u/tkein)\
**Post date:** [June 1, 2018, 3:42pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/4 "2018-06-01T15:42:11Z")

</div>

Based on recent tests, the cookie issue is still present.

This really should get fixed. Being only able to make cookieless HTTP requests is a major shortcoming.

Fortunately you can still create a custom activity to handle requests with cookies, so at least there’s a workaround available, albeit somewhat scary for users with non-programmer background.

---

<div class="post-metadata">

**Author:** ![hangon](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hangon/32/176690_2.png) [@hangon](https://forum.uipath.com/u/hangon)\
**Post date:** [August 15, 2018, 12:57pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/5 "2018-08-15T12:57:04Z")

</div>

I’m having an issue with HTTP Headers… am I doing something wrong or… is this is a bug ?

> [@Not able to set Content-Type Header in HTTP Request](https://forum.uipath.com/t/not-able-to-set-content-type-header-in-http-request/60151):
>
> All, I’m trying to set the Content-Type Header to “application/json”. I have added “Content-Type” Parameter under headers section in the HTTP request. But when sending the request UIPath is still sending the Content-Type as :Content-Type: application/x-www-form-urlencoded" Due to this I’m response from the server is responding with error "“The Content-Type header is missing or invalid”. I have tried the endpoint with SOAPUI… and it works fine… and I can see the Content-Type is set as “appli…

---

<div class="post-metadata">

**Author:** ![Bhaskar\_Mukka](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@Bhaskar\_Mukka](https://forum.uipath.com/u/Bhaskar_Mukka)\
**Post date:** [April 4, 2019, 7:23pm UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/6 "2019-04-04T19:23:56Z")

</div>

Hi @siddu509 , @Taylor, @hangon, @tkein, @ClaytonM

In my current workflow I have created a HTTP GET request with set of Headers.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/4/4/444f997875cd66c7c48fdd58d897d85121d9ac56.png)

 ![image](https://global.discourse-cdn.com/uipath/original/3X/9/a/9ae509f14c16f30c8da37d070e04feae1fbe0113.png)

 ![image](https://global.discourse-cdn.com/uipath/original/3X/b/1/b115d8af16b6ece5004506a292f37904981dce54.png)

When I am passing the Headers and testing this GET API in Postman I am getting success status code 200 and proper/valid json response. But, when I am trying to test the same GET API on UiPath I am getting 500 error message.

**Please find the error message below.**  
500{“Message”:“An error has occurred.”,“ExceptionMessage”:“Multiple controller types were found that match the URL. This can happen if attribute routes on multiple controllers match the requested URL.\r\n\r\nThe request has found  
the following matching controller types:  
\r\nInteract.Web.Api.Controllers.vTP.MemberController\r\nInteract.Web.Api.Controllers.v3.MemberController\r\nInteract.Web.Api.Controllers.v2.MemberController\r\nInteract.Web.Api.Controllers.v1.MemberC  
ontroller”,“ExceptionType”:“System.InvalidOperationException”,“StackTrace”:" at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.GetDirectRouteController(IHttpRouteData routeData)\r\n at  
System.Web.Http.Dispatcher.DefaultHttpControllerSelector.SelectController(HttpRequestMessage request)\r\n at Interact.Web.Api.Infrastructure.CustomHttpControllerSelector.SelectController(HttpRequestMessage request)\r\n  
at System.Web.Http.Dispatcher.HttpControllerDispatcher.d\_\_1.MoveNext()"}.

I discussed the issue with my developer and found that UiPath is not accepting the version header.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/9/a/9ae509f14c16f30c8da37d070e04feae1fbe0113.png)

Can anyone guide me is there any possible why. Where I can send the Header and test the GET API.

---

<div class="post-metadata">

**Author:** ![langsem](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/langsem/32/177289_2.png) [@langsem](https://forum.uipath.com/u/langsem)\
**Post date:** [July 14, 2020, 10:39am UTC](https://forum.uipath.com/t/http-request-not-sending-headers/17762/7 "2020-07-14T10:39:53Z")

</div>

Have same problem just with image upload, did you find a solution ?
