artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
8.06k stars 512 forks source link

Authorize header to redirected page #449

Open venki0889 opened 6 years ago

venki0889 commented 6 years ago

a GET request redirecting to OpenAM page. How do I pass authentication header to the redirect request URL? Can i pass auth header to a specific host that is getting redirected to? Any examples ?

hassy commented 6 years ago

Not sure I understand completely @venki0889, you'd like to set a header just for the URL which the virtual user is being redirected to but not any other requests?

venki0889 commented 6 years ago

Say, I am launching XXX.org url and it redirects to yyy.org to authenticate my credentials and redirects back to XXX.org. I need to pass Authorization header to yyy.org alone, so that it successfully launches YYY and validates my credentials. How to pass that header ?

Let me give any example from VUGEN - performance scripting tool. If need to authenticate in this tool, I will mention below syntax.

web_set_user("UsedID","Password","YYY.org:443");

How do I do the same in artillery ?

saranjaga commented 5 years ago

@hassy, on a similar note, I would like to read the response headers of the first url which is redirecting to second url. is there a way that can be read? In the above example, i would like read the response headers of XXX.org. the after response has the details of the url that got redirected only.