# How to perform https request to web api?

**URL:** <https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751>\
**Category:** Studio\
**Tags:** api, web, studio, webapi, activities\
**Created:** [September 18, 2020, 7:15am UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751 "2020-09-18T07:15:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vigneshnkv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vigneshnkv/32/176675_2.png) [@vigneshnkv](https://forum.uipath.com/u/vigneshnkv)\
**Post date:** [September 18, 2020, 7:15am UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/1 "2020-09-18T07:15:54Z")

</div>

Hi,

How to trigger http **s** request to web api in UiPath?  
i have installed “UiPath.WebAPI.Activities” package and used “ **HTTP Request** ” activity. But this is working only for http request and not https request. how to resolve this?

---

<div class="post-metadata">

**Author:** ![WangJidong](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/wangjidong/32/193913_2.png) [@WangJidong](https://forum.uipath.com/u/WangJidong)\
**Post date:** [September 18, 2020, 7:45am UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/2 "2020-09-18T07:45:56Z")

</div>

Just write the endpoints and parameters of the interface

---

<div class="post-metadata">

**Author:** ![vigneshnkv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vigneshnkv/32/176675_2.png) [@vigneshnkv](https://forum.uipath.com/u/vigneshnkv)\
**Post date:** [September 18, 2020, 1:02pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/3 "2020-09-18T13:02:18Z")

</div>

if i give https site (eg: http **s** ://11.22.33.1000), will that work?  
and  
i have given Header, not parameter, is that fine? or should i need to give both?

---

<div class="post-metadata">

**Author:** ![NIVED\_NAMBIAR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nived_nambiar/32/169066_2.png) [@NIVED\_NAMBIAR](https://forum.uipath.com/u/NIVED_NAMBIAR)\
**Post date:** [September 18, 2020, 5:53pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/4 "2020-09-18T17:53:40Z")

</div>

It will run @vigneshnkv

Check it too

Regards

Nived N 🤖

Happy Automation 😌 😌

---

<div class="post-metadata">

**Author:** ![vigneshnkv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vigneshnkv/32/176675_2.png) [@vigneshnkv](https://forum.uipath.com/u/vigneshnkv)\
**Post date:** [September 22, 2020, 4:36pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/5 "2020-09-22T16:36:42Z")

</div>

I have checked with https, it is not working.

if i hit the same in postman, it is working.

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dave/32/176804_2.png) [@Dave](https://forum.uipath.com/u/Dave)\
**Post date:** [September 22, 2020, 4:57pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/6 "2020-09-22T16:57:57Z")

</div>

I have used the ‘http activity’ extensively with https. Can you post the settings (blurring out sensitive info) in postman compared to uipath? If it works in one then it should work in both, you just have to make sure the settings are the same

---

<div class="post-metadata">

**Author:** ![vigneshnkv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vigneshnkv/32/176675_2.png) [@vigneshnkv](https://forum.uipath.com/u/vigneshnkv)\
**Post date:** [September 23, 2020, 5:34am UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/7 "2020-09-23T05:34:43Z")

</div>

One finding i noticed, the issue is with that one particular machine. What could be the reason for issue in machine2?

I have done preview in **machine1** : (xml is triggered as expected)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/7/a/7a35d7ac3b504de5c98746c1fc33870670ad6d5d.png)

**Machine2** preview (issue, XML not triggering)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/c/6/c6c432e43480ddfaf85679dcd8d4189aa012418b.png)

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dave/32/176804_2.png) [@Dave](https://forum.uipath.com/u/Dave)\
**Post date:** [September 23, 2020, 2:21pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/8 "2020-09-23T14:21:17Z")

</div>

Is it a different user in machine2? If so, make sure that user is authenticated properly.

Does it work on machine2 if you use soapui or other tools?

---

<div class="post-metadata">

**Author:** ![vigneshnkv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vigneshnkv/32/176675_2.png) [@vigneshnkv](https://forum.uipath.com/u/vigneshnkv)\
**Post date:** [September 24, 2020, 1:32pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/9 "2020-09-24T13:32:10Z")

</div>

yes machine2 is different user. Authentication means? what you are referring here? Please explain.

I cold not check post man tool from machine2 as there is some internal restrictions

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dave/32/176804_2.png) [@Dave](https://forum.uipath.com/u/Dave)\
**Post date:** [September 24, 2020, 2:01pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/10 "2020-09-24T14:01:47Z")

</div>

Make sure machine2 user is allowed to access that API. This means with simple authentication (username, password), or with integrated/SSO authentication (usually with Active Directory), or other various ways of authentication.

If the authentication method is simple authentication, you could try using machine1’s username and password to validate if the problem is the machine or the user

---

<div class="post-metadata">

**Author:** ![Cristian\_Negulescu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cristian_negulescu/32/32964_2.png) [@Cristian\_Negulescu](https://forum.uipath.com/u/Cristian_Negulescu)\
**Post date:** [December 24, 2020, 5:14pm UTC](https://forum.uipath.com/t/how-to-perform-https-request-to-web-api/256751/11 "2020-12-24T17:14:49Z")

</div>

Hello Vignesh,  
In this playlist, you have more that 10 videos where I use HTTP request with HTTPS:  
https://www.youtube.com/embed/9UWKxFQZsUQ?feature=oembed&wmode=opaque&list=PLtmJ1hI2wYBmyK1tNbN1RGGnr9Wy4dc3K  
Thanks,  
Cristian Negulescu
