You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a URL that starts with an environment variable, and the environment variable starts with https://, the code generator for Shell - Httpie adds another https:// to the start of the URL.
Example:
Given a request URL {{GoogleUrl}}/doodles, where the enviroment variable for GoogleUrl is https://google.ie, the Shell - Httpie code generator creates http --follow --timeout 3600 GET https://https://google.ie/doodles.
Notes:
This only occurs when using HTTPS. When the environment variable starts with "http://", e.g. http://google.ie, the code generator creates http --follow --timeout 3600 GET http://google.ie/doodles.
For URLs that do not start with environment variables, e.g. https://google.ie/doodles, the code generator creates the correct URL.
To Reproduce
Steps to reproduce the behaviour:
Create an environment in Postman with a variable named GoogleUrl. Set the current value to https://google.ie
Create a GET request with the URL as {{GoogleUrl}}/doodles.
Set the current environment to the one you created before and click on Send. Verify that the request returns 200 OK.
Click on Code and then select "Shell - Httpie" from the list. Note that the code generator has added an extra https:// at the beginning of the URL.
Additional context
Reproducible in Postman v7.31.1. At time of writing, this was the latest version.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using a URL that starts with an environment variable, and the environment variable starts with
https://
, the code generator for Shell - Httpie adds anotherhttps://
to the start of the URL.Example:
Given a request URL
{{GoogleUrl}}/doodles
, where the enviroment variable for GoogleUrl ishttps://google.ie
, the Shell - Httpie code generator createshttp --follow --timeout 3600 GET https://https://google.ie/doodles
.Notes:
This only occurs when using HTTPS. When the environment variable starts with "http://", e.g.
http://google.ie
, the code generator createshttp --follow --timeout 3600 GET http://google.ie/doodles
.For URLs that do not start with environment variables, e.g.
https://google.ie/doodles
, the code generator creates the correct URL.To Reproduce
Steps to reproduce the behaviour:
https://google.ie
{{GoogleUrl}}/doodles
.https://
at the beginning of the URL.Additional context
Reproducible in Postman v7.31.1. At time of writing, this was the latest version.
The text was updated successfully, but these errors were encountered: