# InsecureRequestWarning: Unverified HTTPS request is being made to host

**URL:** <https://forum.robotframework.org/t/insecurerequestwarning-unverified-https-request-is-being-made-to-host/7442>\
**Category:** RequestsLibrary\
**Created:** [18 June 2024 07:42 UTC](https://forum.robotframework.org/t/insecurerequestwarning-unverified-https-request-is-being-made-to-host/7442 "2024-06-18T07:42:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaybodake](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@ajaybodake](https://forum.robotframework.org/u/ajaybodake)\
**Post date:** [18 June 2024 07:42 UTC](https://forum.robotframework.org/t/insecurerequestwarning-unverified-https-request-is-being-made-to-host/7442/1 "2024-06-18T07:42:13Z")

</div>

trying to execute POST method but getting error

# robot -d results .\APIs\TC1\_GET\_Request.robot

# TC1 GET Request

Get\_User\_Info .C:\Users\Dell\AppData\Local\Programs\Python\Python312-32\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host ‘reqres.in’. Adding certificate verification is strongly advised. See: [Advanced Usage - urllib3 0.1.dev50 documentation](https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings)  
warnings.warn

My script is

\*\*\* Settings \*\*\*  
Library RequestsLibrary  
Library Collections

\*\*\* Variables \*\*\*  
#Run the script  
#robot -d results .\APIs\TC1\_GET\_Request.robot  
${base\_url} [https://reqres.in/](https://reqres.in/)

\*\*\* Test Cases \*\*\*  
CreateUser\_Post  
Create Session mysession ${base\_url} disable\_warnings=1  
${body}= Create Dictionary name=ajaybodake job=SSE  
${header}= Create Dictionary Content-Type=application/json  
${response}= POST On Session mysession /api/users data=${body} headers=${header}  
… verify=False

```
Log To Console ${response.status_code}
Log To Console ${response.content}

#Validations
 ${status_code}= Convert To String ${response.status_code}
 Should Be Equal ${status_code} 201
${res_body}= Convert To String ${response.content}
Should Contain ${res_body} SSE

```

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [18 June 2024 10:17 UTC](https://forum.robotframework.org/t/insecurerequestwarning-unverified-https-request-is-being-made-to-host/7442/2 "2024-06-18T10:17:22Z")

</div>

Hi Ajay,

Normally you get an error like this when your test environment is setup with a self signed certificate or when there is some other issue causing the certificate not to be recognised as a valid cert. (It happened a lot a few years back when one of the top level cert signing authorities had to quickly change a root cert)

The easiest solution is to get your IT people to ensure the certs are setup and signed correctly, but if that’s not an easy option, there are a couple of setting for [Create Session](https://marketsquare.github.io/robotframework-requests/doc/RequestsLibrary.html#Create%20Session) that you should look into, namely `verify` and `disable_warnings`, don’t just blindly go changing them, take time to understand the consequences and risks first.

Dave.
