Jump to content
WAPT Forum
Sign in to follow this  
Guest Paul Deen

Cannot record JSON requests?

Recommended Posts

Guest Paul Deen

It seems that WAPT struggles recording JSON (standard web service call with ASP.NET AJAX)

 

When using HTTP Fiddler and IE directly, I can see the successful POST data looks like this:

{"helpId":"posadrn","helpTitle":"Address"}

 

However, using WAPT, it seems to encode that POST data, so it looks like:

 

%7B%22helpId%22%3A%22posadrn%22%2C%22helpTitle%22%3A%22Address%22%7D

 

Which is immediately rejected by the server.

 

I created a new request and put in the JSON code into the POST field directly; it does exactly the same thing. Is there any way to work around this?

 

Thanks,

 

Paul

Share this post


Link to post
Share on other sites
Guest angela
It seems that WAPT struggles recording JSON (standard web service call with ASP.NET AJAX)

 

When using HTTP Fiddler and IE directly, I can see the successful POST data looks like this:

{"helpId":"posadrn","helpTitle":"Address"}

 

However, using WAPT, it seems to encode that POST data, so it looks like:

 

%7B%22helpId%22%3A%22posadrn%22%2C%22helpTitle%22%3A%22Address%22%7D

 

Which is immediately rejected by the server.

 

I created a new request and put in the JSON code into the POST field directly; it does exactly the same thing. Is there any way to work around this?

 

Thanks,

 

Paul

 

Hi Paul,

 

In the Profile properties there is an option "Encode request parameters" set by default, please try to disable it and see if the problem remains.

 

Share this post


Link to post
Share on other sites
Guest Paul Deen
Hi Paul,

 

In the Profile properties there is an option "Encode request parameters" set by default, please try to disable it and see if the problem remains.

 

Hi Angela.

 

Yes, this allows the json request to run, however, this option is done at profile level rather than request. If I turn it off, the JSON request runs great, but the rest of the request crash and burn. Is there any intention to be able to override this at request level?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...