You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by glc <ga...@orcanos.com> on 2010/02/24 11:34:31 UTC
Re: send html code as parameter in HTTP POST request (functional
test)
Thanks !
Tried it and i got error i think its related to the content endoding
I guess i dont know how to config the http request correctly with this
paramter
what am i doing wrong?
appriciate the help...
http://old.nabble.com/file/p27714157/1.png
response data failure
http://old.nabble.com/file/p27714157/2.png
On 23/02/2010, glc <ga...@orcanos.com> wrote:
>
> Hi !
> i'm trying to finda way to use html code string as paramter , but it
> seems
> like jmeter does not post html code properly (the purpose of my test is
> to
> test API functionality when adding new object with description)
>
> 1. i use html code in text file, and use the text file as parameter like
> this:
>
> http://old.nabble.com/file/p27704791/paramter.png
>
> 2. the parametr file 'desc.txt' contain this html:
>
>
> http://old.nabble.com/file/p27704791/code.png
>
> 3. somehow the html code is converted to somthing else by jmeter and i
> get
> this giberrish in my description results:
> http://old.nabble.com/file/p27704791/desc.png
>
> of course when i test my API manually it works fine and i get
> this(bellow)
> in my description results so i'm pretty sure that jmeter somhow the
> cause
> for it
>
> http://old.nabble.com/file/p27704791/html.png
>
>
> how can i post this html code properly??
>
> -----
> Glc
>
> :working:
>
> --
> View this message in context:
> http://old.nabble.com/send-html-code-as-parameter-in-HTTP-POST-request-%28functional-test%29-tp27704791p27704791.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
-----
Glc
:working:
--
View this message in context: http://old.nabble.com/send-html-code-as-parameter-in-HTTP-POST-request-%28functional-test%29-tp27704791p27714157.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: send html code as parameter in HTTP POST request (functional
test)
Posted by sebb <se...@gmail.com>.
On 24/02/2010, glc <ga...@orcanos.com> wrote:
>
> Thanks !
> Tried it and i got error i think its related to the content endoding
The error message says:
java.lang.UnsupportedCodingException: ISO8859_1
The supported encodings are listed here:
http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html
This shows that ISO8859_1 is one of the valid encodings.
However ISO8859_1 is not a valid encoding ;-)
The difference is that there is a space after the "1" - check whether
you have accidentally added a space there.
> I guess i dont know how to config the http request correctly with this
> paramter
> what am i doing wrong?
> appriciate the help...
>
> http://old.nabble.com/file/p27714157/1.png
>
> response data failure
>
> http://old.nabble.com/file/p27714157/2.png
>
>
>
> On 23/02/2010, glc <ga...@orcanos.com> wrote:
> >
> > Hi !
> > i'm trying to finda way to use html code string as paramter , but it
> > seems
> > like jmeter does not post html code properly (the purpose of my test is
> > to
> > test API functionality when adding new object with description)
> >
> > 1. i use html code in text file, and use the text file as parameter like
> > this:
> >
> > http://old.nabble.com/file/p27704791/paramter.png
> >
> > 2. the parametr file 'desc.txt' contain this html:
> >
> >
> > http://old.nabble.com/file/p27704791/code.png
> >
> > 3. somehow the html code is converted to somthing else by jmeter and i
> > get
> > this giberrish in my description results:
> > http://old.nabble.com/file/p27704791/desc.png
> >
> > of course when i test my API manually it works fine and i get
> > this(bellow)
> > in my description results so i'm pretty sure that jmeter somhow the
> > cause
> > for it
> >
> > http://old.nabble.com/file/p27704791/html.png
> >
> >
> > how can i post this html code properly??
> >
> > -----
> > Glc
> >
> > :working:
> >
> > --
> > View this message in context:
> > http://old.nabble.com/send-html-code-as-parameter-in-HTTP-POST-request-%28functional-test%29-tp27704791p27704791.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> -----
> Glc
>
> :working:
> --
>
> View this message in context: http://old.nabble.com/send-html-code-as-parameter-in-HTTP-POST-request-%28functional-test%29-tp27704791p27714157.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org