Forum Discussion
Hi
This is an old post but i'm interressed in knowing if you had find a solution.
I have the same need.
Thanks
KM
Hi,
> Can TestComplete "read" a value from a URL, and then "write" that value into an HTTP header?
> [...] if you had find a solution.
While technically one can parse URL to extract some data from it and issue a request with custom header using TestComplete, I am far not sure this will work in production. Just because this request will be send not from a browser and will not be processed by the browser and thus nothing will be rendered in the browser so that TestComplete can proceed with test execution.
If I got the question right, something like intercepting proxy (e.g. Fiddler) is required here. The browser is set up to use proxy and the proxy is set to monitor the traffic for the tested web site, check if URL contains sought for data, extract this data and append extracted data as a new custom header to all relevant subsequent outgoing requests.
Related Content
- 19 days ago
- 4 years ago
Recent Discussions
- 20 hours ago