Problem with post data (Extra & at the end)

Forum for users of ANTS web server load testing tool

Moderator: Brian Donahue

Problem with post data (Extra & at the end)

Postby jb007 » Wed May 10, 2006 9:15 pm

We have noticed an issue with the post data. We found that ANTS load adds a & at the end of the post data. What this does is add a key to the Request.Params.AllKeys Collection with a key value of "null". This is breaking our code and we are not able to use ANTS load.
The post data is being added using the WebClient.HttpRequest.AddPostData Method

Fixing the code to check for null value is not an option for us at this point of time.

Any suggestions

TIA
jb007
 
Posts: 7
Joined: Wed Dec 21, 2005 10:23 pm

Postby Brian Donahue » Thu May 11, 2006 11:51 am

Sounds like a cut-and-dried problem in the application. I'll have a look at it.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Thu May 11, 2006 1:24 pm

I've had a look at the code and it looks okay. Every call to AddPostData will generate a &name=value pair. Have you maybe got a blank AddPostData() method somewhere in the script?
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby jb007 » Thu May 11, 2006 5:57 pm

Brian,
we do not have any additional Addtopostdata calls in the script. I must mention that I am using version 1.6.

TIA
jb007
 
Posts: 7
Joined: Wed Dec 21, 2005 10:23 pm

Postby Brian Donahue » Tue May 16, 2006 5:57 pm

Can you please upgrade to 1.7? I can't see how this would happen in the newest version. I haven't checked the 1.6 code to see if it's the same, though.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests