You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Carl Shaulis <cs...@homeaway.com> on 2009/12/22 19:12:03 UTC
Post with JSON encoding but a comment with the plain/text mime type
Howdy,
These are naïve questions but I have never worked with JSON before.
So I need to do a post to a REST API using application./json but on the end
of the post is a comment that requires the plain/text mime type.
Anyone have pointers on doing posts of this nature?
Thanks,
Carl
Re: Post with JSON encoding but a comment with the plain/text mime
type
Posted by Deepak Shetty <sh...@gmail.com>.
hi
I might be wrong but the application/json type applies when the server is
sending back a JSON response.
When you are posting data then the normal form post encoding applies
(x-www-form-urlencoded or multipart form-data). Only if you are sending the
data as multipart-formdata would you need to specify individual encoding ,
which as far as I know most REST based / JSON API's dont need , and you
would post parameters as normal.
regards
deepak
On Tue, Dec 22, 2009 at 10:12 AM, Carl Shaulis <cs...@homeaway.com>wrote:
> Howdy,
>
> These are naïve questions but I have never worked with JSON before.
>
> So I need to do a post to a REST API using application./json but on the end
> of the post is a comment that requires the plain/text mime type.
>
> Anyone have pointers on doing posts of this nature?
>
> Thanks,
>
> Carl
>