I'm unable to use the standard {{variable_name}}
format for some reason. I'm making a POST request to log into a website that uses ASPX. I intercepted this request when I logged in normally and have been using it since.
This is my current body:
ScriptManager1=updpnl%7CbtnLogin&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwULLTE4NTA1MzM2ODIPZBYCAgMPZBYCAgMPZBYCZg9kFgICAw8PFgIeB1Zpc2libGVoZGRkZQeElbA4UBZ%2FsIRqcKZDYpcgTP0%3D&__VIEWSTATEGENERATOR=6ED0046F&__EVENTVALIDATION=%2FwEdAAbdzkkY3m2QukSc6Qo1ZHjQdR78oILfrSzgm87C%2Fa1IYZxpWckI3qdmfEJVCu2f5cEJlsYldsTO6iyyyy0NDvcAop4oRunf14dz2Zt2%2BQKDEIHFert2MhVDDgiZPfTqiMme8dYSy24aMNCGMYN2F8ckIbO3nw%3D%3D&txtUserid=USERNAME&txtpassword=PASSWORD&__ASYNCPOST=true&btnLogin=Sign%20in
When I replace the username and password with my environmental variables using the {{ }}
format, and submit the request, it doesn't work anymore.
How do I use environment variables in this case?
UPDATE:
I solved the issue by exporting the postman collection, and using NodeJS to manually change those parameters via an input. I'm not sure if that's the best way to do it, but this works for me.