I’m trying to interact with an API that requires the Date header to be in a specific format. However, it seems like UiPath quietly changes this header to a different format.
Headers I specified in UiPath:
Headers received by endpoint:
Note that the Date header has been converted to RFC1123 format (or the “r” format specifier).
If I provide a value that doesn’t look like a date to the Date header, it seems to be removed from the headers list entirely.
Is there a way to disable this behaviour? I’d prefer to specify exactly what values the headers should be, including Date.
Sorry to bring up an old thread. Have you by any chance found a way to stop this?
I’m using an http signature which contains a date in a certain format signed by a private key, but because UiPath is changing the date format I keep getting the 401 rejected response because of content mismatching.
should be
actual
Hey @byuil, sorry for the late reply. Unfortunately, if I recall correctly I wasn’t able to fix this using the HTTP Request activity. I ended up switching to a Visual Studio/Activity Creator-based custom library for other reasons, where I had finer grained control over the request.