[Http-webtest-general] Overriding what StatusTest considers OK
Brought to you by:
m_ilya,
richardanderson
From: Joe <joe...@us...> - 2005-04-18 12:35:35
|
Hello List, While experimenting with very large http responses, I found out that I can easily limit the amount of data which the embedded LWP UserAgent will retrieve from the network. I added a global parameter: on_start = { my $wt = shift; $wt->user_agent->max_size(1024); } This works just fine, except that I get an error message from StatusTest: Expected '200' and got: 206 Partial Content I see tried two possoble directions to solve this issue 1. Override the behaviour of StausTest to consider a result code of 206 as "OK" 2. Ignore the status test alltogether. I got stuck in either directions. I have one additional limiting condition, in that we have WebTest installed on a production box, where changing anything in the Perl config (and thus installd modules) is rather out of the question. Cheers, Joe. |