# Http request-postman 400 error

**URL:** <https://forum.uipath.com/t/http-request-postman-400-error/733229>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, webapi, activities\
**Created:** [April 9, 2024, 12:55pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229 "2024-04-09T12:55:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anelisa\_Bolosha1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anelisa_bolosha1/32/496797_2.png) [@Anelisa\_Bolosha1](https://forum.uipath.com/u/Anelisa_Bolosha1)\
**Post date:** [April 9, 2024, 12:55pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229/1 "2024-04-09T12:55:06Z")

</div>

I am reading a text file in XML form and using it in the body  
[It Lalitha. I have a FAMILY FUNERA.txt](https://forum.uipath.com/uploads/short-url/7Ll2Ofvoq3bDEPMaOJs6WGykX1t.txt) (1.3 KB)  
That is the text I put here on the xml body

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/9/d/c9dd366c7955f9d8eb2a3f3f81c422cbcca067f0.png)

But I receive this error:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/1/0/e/10e81b29281a3ec9f97c1706ba8c96f8c4b09d7c.png)  
Anyone who can help to suggest maybe what could this syntax be, the text seems line checked for white spaces and all.

---

<div class="post-metadata">

**Author:** ![sarathi125](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sarathi125/32/519448_2.png) [@sarathi125](https://forum.uipath.com/u/sarathi125)\
**Post date:** [April 9, 2024, 12:57pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229/2 "2024-04-09T12:57:39Z")

</div>

@Anelisa_Bolosha1,

400 Error code refers to Bad Request,

How to Fix a 400 Bad Request Error

1. Double-Check the URL
2. Clear Browser Cache and Cookies
3. Turn Off Browser Extensions
4. Clear DNS Cache
5. Check if the File Size Exceeds Server Limits

---

<div class="post-metadata">

**Author:** ![Anelisa\_Bolosha1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anelisa_bolosha1/32/496797_2.png) [@Anelisa\_Bolosha1](https://forum.uipath.com/u/Anelisa_Bolosha1)\
**Post date:** [April 9, 2024, 1:25pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229/3 "2024-04-09T13:25:28Z")

</div>

The url works well, it’s working on the other texts that I put there it sends a request well.  
In UiPath studio on the http activity that I am using I did not include the cookie as a header, although in postman when I make a request it is generated, but you can please suggest on how to do that.

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [April 9, 2024, 1:41pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229/4 "2024-04-09T13:41:58Z")

</div>

@Anelisa_Bolosha1,

I would suggest to follow the API provider documentation. There is something missing on not in required format in your request.

Thanks,  
Ashok 🙂

---

<div class="post-metadata">

**Author:** ![Anelisa\_Bolosha1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anelisa_bolosha1/32/496797_2.png) [@Anelisa\_Bolosha1](https://forum.uipath.com/u/Anelisa_Bolosha1)\
**Post date:** [April 9, 2024, 2:37pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229/5 "2024-04-09T14:37:54Z")

</div>

Manage to find the solution for this, it was a syntax error on my text for an ‘&’ sign which I changed to &

and it worked well, if someone has special character on the text like this using xml, then try writing them like this:

1. `<` - `&lt;`
2. `>` - `&gt;`
3. `&` - `&amp;`
4. `'` - `&apos;`
5. `"` - `&quot;`

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [April 12, 2024, 2:38pm UTC](https://forum.uipath.com/t/http-request-postman-400-error/733229/6 "2024-04-12T14:38:05Z")

</div>

Closed on April 12, 2024, 2:38pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
