# HTTP Request "date" header error

**URL:** <https://forum.uipath.com/t/http-request-date-header-error/706130>\
**Category:** Activities\
**Tags:** http-request, postman, date, api, web, question, webapi, activities\
**Created:** [December 13, 2023, 9:35am UTC](https://forum.uipath.com/t/http-request-date-header-error/706130 "2023-12-13T09:35:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelmonrealr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/angelmonrealr/32/496797_2.png) [@angelmonrealr](https://forum.uipath.com/u/angelmonrealr)\
**Post date:** [December 13, 2023, 9:35am UTC](https://forum.uipath.com/t/http-request-date-header-error/706130/1 "2023-12-13T09:35:26Z")

</div>

Hi everyone!

I’m losing my mind because of an API integration. I’m trying to use an API to get a state about a sign operation. I send the ID of the document and the API gives me a number with the state. The thing is: I have tried with HTTP Request, using the headers I need, but I am given an error that says I haven’t sent the header “date” (this header has to be the actual datetime in milliseconds). But if I use POSTMAN to try an example, it works fine!

I use the same headers, everything is the same, but with HTTP Request it doesn’t work and I don’t know why. I have these headers:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/b/c/8bcdde230ebeeb21c730e576bbce5c4e6f0382b2.png)

This gives me an error documented on the website. But if I use Postman it works:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/2/2/822c69bdf6a5ee282e414d3ffab015f5e5df4e65.png)

Do you know why this is happening? It’s the first time I’m using an API from a website without any help and I don’t know what to do. I have tried with invoke code, but without an example I can’t go on. When I send a document for signing I have to use an invoke code and I have this written in (maybe it helps):

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

Thank you so much for your help.

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [December 13, 2023, 10:26am UTC](https://forum.uipath.com/t/http-request-date-header-error/706130/2 "2023-12-13T10:26:40Z")

</div>

Had you tried to send the date as number / withoud enclosning "  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/b/1/0/b10c6ab81682b9d32244fdea7607e931f104422d.png)

Sometimes HTTP Request is limited. But when implementing custom call we would use nowadays HTTClient

> **[HttpClient Class (System.Net.Http)](https://learn.microsoft.com/en-US/dotnet/api/system.net.http.httpclient?view=net-7.0)**
>
> Provides a class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI.

---

<div class="post-metadata">

**Author:** ![angelmonrealr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/angelmonrealr/32/496797_2.png) [@angelmonrealr](https://forum.uipath.com/u/angelmonrealr)\
**Post date:** [December 13, 2023, 10:35am UTC](https://forum.uipath.com/t/http-request-date-header-error/706130/3 "2023-12-13T10:35:21Z")

</div>

Hi Peter,

Thank you for your reply. It doesn’t work as a number:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/f/0/0f003099c14432888e9953aae8c5d145bfde60ad.png)

What is that HttpClient? Is that a new package I can use? I don’t see it as an activity.

Regards,  
Ángel
