Script Compilation Errors
tonymaynardsmith
Posts: 7
I get a script compilation error talking about a Null reference when I include the lines:
logtofile(webclient.HttpRequest.Headers.ToString)
logtofile(webclient.HttpResponse.Headers.ToString)
Over to you.
Regards, Tony.
logtofile(webclient.HttpRequest.Headers.ToString)
logtofile(webclient.HttpResponse.Headers.ToString)
Over to you.
Regards, Tony.
Comments
I'll look into supporting this. The problem is that the HttpRequest and HttpResponse objects are 'fakes' in script tester. I don't think I supported the 'inherited' methods like ToString and Headers["something"].
The Headers object now acts like a WebHeaderCollection object, so you can get request headers by name from your ANTS Load script.
I've also added a few enhancements