Other result HttpResponse.Content
thieu
Posts: 8
Hello,
I tested my script several times with the ANTS Load script tester and saved the HttpResponse.Content to the logfile by using LogToFile(WebClient.HttpResponse.Content).
In the directory where the ANTS Load script tester is installed, there was correctly one file added named AntsTraceLog.txt with the Html that the page was already redirected (and I'm sure I logged only once).
But if I run exactly the same project with the ANTS Load tool, I received the Html what I expected and not the Html that the page was already redirected.
So there seems to be a difference between both tools?
I like the script tester, but if I get other results...
Does someone have a sollution for this?
Kind regards,
Peter Theuwis
I tested my script several times with the ANTS Load script tester and saved the HttpResponse.Content to the logfile by using LogToFile(WebClient.HttpResponse.Content).
In the directory where the ANTS Load script tester is installed, there was correctly one file added named AntsTraceLog.txt with the Html that the page was already redirected (and I'm sure I logged only once).
But if I run exactly the same project with the ANTS Load tool, I received the Html what I expected and not the Html that the page was already redirected.
So there seems to be a difference between both tools?
I like the script tester, but if I get other results...
Does someone have a sollution for this?
Kind regards,
Peter Theuwis
Comments
There is a difference that would cause this. The script tester automatically follows redirections, whereas ANTS Load does not. The reason for this is that the Internet Explorer web browser component (shDocVw.dll) always follows redirects, and there is no way to disable the behavior.
When IE7 comes out, it will have an option to disable automatic redirection, so I'll definitely look at the issue again once IE7 is widely installed.