This may be specific to the endpoint being used but
Lets say I have a pre request script that makes the following
pm.environment.set('randomNumber', number);
pm.environment.set('table',tableName);
Then in the request URL its a DEL with the following url as example.
www.domain.com/table({{tableName}},{{number}})
.
Assuming this is how the request wants to be formatted then it should work but in my issue I can see that the URL is constructed as such when the request is sent, but fails when using parameterization.
If I take the same request that gets output in the console from the parameterization and use it has a hardcoded url it passes.
Any ideas or help?
This is the endpoint being used - Delete Entity (REST API) - Azure Storage | Microsoft Docs
w4dd325
(w4dd325)
February 26, 2022, 8:58am
2
Hi @dbiles123456789
Try removing the rounded brackets and comma from the URL path.
For example;
www.domain.com/table{{tableName}}{{number}}
or
www.domain.com/table/{{tableName}}/{{number}}
If you specifically need these in the URL then they would most likely need URL encoding;
www.domain.com%2Ftable%28{{tableName}}%2C{{number}}%29
Sadly, Azure will not allow that to work. That format would make much more sense but…
Again, oddly enough, if I take the entire url that prints to the postman console and use the hardcoded values it works.
I’m not sure if this is on the Azure side or on the postman side
w4dd325
(w4dd325)
February 26, 2022, 9:14pm
4
could you share some screenshots? would help visualise what you mean.
1 Like
If you notice the order of the console output here
I am able to create a row in a table
When I try to delete said row I get a 403 - again this url is dynamical generated in the pre-request script
If I copy the generated url and paste in the address bar of postman for the delete request it responds with a 204
Very puzzling as to why a url generated within postman would fail but the same generated url works if used directly with hardcoded values
w4dd325
(w4dd325)
March 12, 2022, 9:47am
6
I wonder if it could be related to this…
opened 09:02AM - 12 Feb 18 UTC
closed 07:18PM - 10 Mar 20 UTC
feature
pending-close
encode-decode
configurations
request-sending
product/runtime
## App Details:
```
Postman for Windows
Version 5.5.2
win32 10.0.15063 / x64…
```
## Issue Report:
1. Did you encounter this recently, or has this bug always been there: **Always been there**
2. Expected behaviour: I expect Postman to send the request I am asking it to send.
In Postman I do a GET to http://foo.com?x={123}
Postman actually sends a GET to http://foo.com/?id=%7B123%7D
Postman console shows http://foo.com?x={123}
I understand some people want automatic url encoding but there are times when you have to investigate issues that depend on Postman sending the url without modifying it. Right now I'm dealing with such an issue and I can't use Postman. In my opinion it should be possible to disable automatic url encoding through a setting or button.