You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Remedy QA <re...@yahoo.com> on 2004/07/28 03:05:01 UTC

HTTP Request sampler other means of sending data

The current HTTP Request sampler sends form action type parameter/value pairings.  But what if I just want to send plain form post data so that on the mid-tier end, the request data is read directly from the input stream (socket)?  
 
Using the proxy to record such a behavior doesn't allow jmeter to send the correct request data.  The recording tries to break the complete data stream into parameter/value pairing.
 
Is there any workaround? 
 
Thanks,
mabel  



		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: HTTP Request sampler other means of sending data

Posted by Peter Lin <wo...@gmail.com>.
glad that helped :)

peter


On Thu, 29 Jul 2004 12:40:06 -0700 (PDT), mabel <re...@yahoo.com> wrote:
> After some debugging, the Soap-XML Request is exactly what I needed to implement what I wanted.
> 
> Now if only the proxy recorder can record the correct type of sampler then I won't have to manually add them in my script... ;-)
> 
> Thanks for your help.  Btw, I did write a simple servlet to echo the output and some other debug statements. That helped.
> 
> 
> 
> Peter Lin <wo...@gmail.com> wrote:
> ok, that makes sense. for a minute there, I thought someone put some
> crack in my coffee. If I remember the XML-RPC sampler, it just writes
> to the outputstream, but it doesn't set the post data. which means the
> view results in tree doesn't show it. since post data can be in a
> variety of format, it could cause rendering issues.
> 
> an easy trick is to write the echo servlet I mentioned earlier and
> point jmeter at it. that way, you can atleast test to see what is
> happening. I'm guessing you don't have access to the serverside code
> and have to fumble around to figure out what's going on. good luck
> 
> peter
> 
> On Wed, 28 Jul 2004 12:42:23 -0700 (PDT), Remedy QA wrote:
> > The browser is not sending in a name/value pair post. There is an ActiveX object created by javascript that sends in post method but just the data. I think it uses xml http. I'm discovering this as I go. A sample javascript to invoke this may look like
> >
> > var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");objHTTP.Open('POST','servletname',false);
> > objHTTP.setRequestHeader("Content-type","text/plain; charset=UTF-8");objHTTP.Send("148/GetTableEntryList/8/");
> >
> > Since I think it's using xml http, looks like I have to write a new sampler. But the soap-xml request looks like something I can use or build off of.
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTP Request sampler other means of sending data

Posted by mabel <re...@yahoo.com>.
After some debugging, the Soap-XML Request is exactly what I needed to implement what I wanted.  
 
Now if only the proxy recorder can record the correct type of sampler then I won't have to manually add them in my script... ;-)
 
Thanks for your help.  Btw, I did write a simple servlet to echo the output and some other debug statements. That helped.

Peter Lin <wo...@gmail.com> wrote:
ok, that makes sense. for a minute there, I thought someone put some
crack in my coffee. If I remember the XML-RPC sampler, it just writes
to the outputstream, but it doesn't set the post data. which means the
view results in tree doesn't show it. since post data can be in a
variety of format, it could cause rendering issues.

an easy trick is to write the echo servlet I mentioned earlier and
point jmeter at it. that way, you can atleast test to see what is
happening. I'm guessing you don't have access to the serverside code
and have to fumble around to figure out what's going on. good luck

peter


On Wed, 28 Jul 2004 12:42:23 -0700 (PDT), Remedy QA wrote:
> The browser is not sending in a name/value pair post. There is an ActiveX object created by javascript that sends in post method but just the data. I think it uses xml http. I'm discovering this as I go. A sample javascript to invoke this may look like
> 
> var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");objHTTP.Open('POST','servletname',false);
> objHTTP.setRequestHeader("Content-type","text/plain; charset=UTF-8");objHTTP.Send("148/GetTableEntryList/8/");
> 
> Since I think it's using xml http, looks like I have to write a new sampler. But the soap-xml request looks like something I can use or build off of.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: HTTP Request sampler other means of sending data

Posted by Peter Lin <wo...@gmail.com>.
ok, that makes sense. for a minute there, I thought someone put some
crack in my coffee. If I remember the XML-RPC sampler, it just writes
to the outputstream, but it doesn't set the post data. which means the
view results in tree doesn't show it. since post data can be in a
variety of format, it could cause rendering issues.

an easy trick is to write the echo servlet I mentioned earlier and
point jmeter at it. that way, you can atleast test to see what is
happening. I'm guessing you don't have access to the serverside code
and have to fumble around to figure out what's going on. good luck

peter


On Wed, 28 Jul 2004 12:42:23 -0700 (PDT), Remedy QA <re...@yahoo.com> wrote:
> The browser is not sending in a name/value pair post.  There is an ActiveX object created by javascript that sends in post method but just the data.  I think it uses xml http.  I'm discovering this as I go.  A sample javascript to invoke this may look like
> 
> var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");objHTTP.Open('POST','servletname',false);
> objHTTP.setRequestHeader("Content-type","text/plain; charset=UTF-8");objHTTP.Send("148/GetTableEntryList/8/");
> 
> Since I think it's using xml http, looks like I have to write a new sampler.  But the soap-xml request looks like something I can use or build off of.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTP Request sampler other means of sending data

Posted by Remedy QA <re...@yahoo.com>.
The browser is not sending in a name/value pair post.  There is an ActiveX object created by javascript that sends in post method but just the data.  I think it uses xml http.  I'm discovering this as I go.  A sample javascript to invoke this may look like
 

var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");objHTTP.Open('POST','servletname',false);
objHTTP.setRequestHeader("Content-type","text/plain; charset=UTF-8");objHTTP.Send("148/GetTableEntryList/8/");

 
Since I think it's using xml http, looks like I have to write a new sampler.  But the soap-xml request looks like something I can use or build off of.

Peter Lin <wo...@gmail.com> wrote:
to summarize, the browser is sending the post data. So is that text a
name/value pair? now I am confused. if it's sent by the browser, is
there some activeX or applet sending the data?

in a normal is it even possible to send just
"148/GetTableEntryList/8/" without a parameter name? I didn't think
it was possible.

if it's a normal name/value pair, you should be able to access it with
the normal request parameter objects. if not, I'm totally lost as to
exactly what you're trying to achieve.


peter


On Wed, 28 Jul 2004 12:10:49 -0700 (PDT), Remedy QA wrote:
> Actually, the request is sent by the browser in UTF-8. The target application will also return in UTF-8.
> 
> Peter Lin wrote:sounds like that isn't following the standard. I'm guessing the
> 
> 
> request is sent by a program and not a browser.
> 
> I'm going to guess the target application uses servlet mapping and
> routing to return the correct http resource. If that is the case,
> you're probably going to have to write a new sampler and manually
> manipulate the request and request header.
> 
> peter
> 
> On Wed, 28 Jul 2004 11:49:32 -0700 (PDT), Remedy QA wrote:
> > What I mean is that HTTP Request sampler sends URL encoded request data but I would like the option to not do that.
> > Suppose my data string is such:
> >
> > 148/GetTableEntryList/8/
> >
> > Using the HTTP Request sampler, it will URL encode it before sending to the web server:
> >
> > 148%2FGetTableEntryList%2F8%2F
> >
> > I would like to send just the raw data in a post method but not in a form action submit post method.
> >
> > joelsherriff wrote:
> > Could you include an example here? I'm trying to compile a list of issues
> > such as this and I'm not sure I understand what the problem is.
> >
> > J
> >
> >
> > ----- Original Message -----
> > From: "Remedy QA"
> > To: "JMeter User List"
> > Sent: Tuesday, July 27, 2004 9:05 PM
> > Subject: HTTP Request sampler other means of sending data
> >
> > > The current HTTP Request sampler sends form action type parameter/value
> > pairings. But what if I just want to send plain form post data so that on
> > the mid-tier end, the request data is read directly from the input stream
> > (socket)?
> > >
> > > Using the proxy to record such a behavior doesn't allow jmeter to send the
> > correct request data. The recording tries to break the complete data stream
> > into parameter/value pairing.
> > >
> > > Is there any workaround?
> > >
> > > Thanks,
> > > mabel
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Yahoo! Mail - 50x more storage than other providers!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


		
---------------------------------
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.

Re: HTTP Request sampler other means of sending data

Posted by Peter Lin <wo...@gmail.com>.
to summarize, the browser is sending the post data. So is that text a
name/value pair?  now I am confused. if it's sent by the browser, is
there some activeX or applet sending the data?

in a normal <form> is it even possible to send just
"148/GetTableEntryList/8/" without a parameter name?  I didn't think
it was possible.

if it's a normal name/value pair, you should be able to access it with
the normal request parameter objects.  if not, I'm totally lost as to
exactly what you're trying to achieve.


peter


On Wed, 28 Jul 2004 12:10:49 -0700 (PDT), Remedy QA <re...@yahoo.com> wrote:
> Actually, the request is sent by the browser in UTF-8.  The target application will also return in UTF-8.
> 
> Peter Lin <wo...@gmail.com> wrote:sounds like that isn't following the standard. I'm guessing the
> 
> 
> request is sent by a program and not a browser.
> 
> I'm going to guess the target application uses servlet mapping and
> routing to return the correct http resource. If that is the case,
> you're probably going to have to write a new sampler and manually
> manipulate the request and request header.
> 
> peter
> 
> On Wed, 28 Jul 2004 11:49:32 -0700 (PDT), Remedy QA wrote:
> > What I mean is that HTTP Request sampler sends URL encoded request data but I would like the option to not do that.
> > Suppose my data string is such:
> >
> > 148/GetTableEntryList/8/
> >
> > Using the HTTP Request sampler, it will URL encode it before sending to the web server:
> >
> > 148%2FGetTableEntryList%2F8%2F
> >
> > I would like to send just the raw data in a post method but not in a form action submit post method.
> >
> > joelsherriff wrote:
> > Could you include an example here? I'm trying to compile a list of issues
> > such as this and I'm not sure I understand what the problem is.
> >
> > J
> >
> >
> > ----- Original Message -----
> > From: "Remedy QA"
> > To: "JMeter User List"
> > Sent: Tuesday, July 27, 2004 9:05 PM
> > Subject: HTTP Request sampler other means of sending data
> >
> > > The current HTTP Request sampler sends form action type parameter/value
> > pairings. But what if I just want to send plain form post data so that on
> > the mid-tier end, the request data is read directly from the input stream
> > (socket)?
> > >
> > > Using the proxy to record such a behavior doesn't allow jmeter to send the
> > correct request data. The recording tries to break the complete data stream
> > into parameter/value pairing.
> > >
> > > Is there any workaround?
> > >
> > > Thanks,
> > > mabel
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Yahoo! Mail - 50x more storage than other providers!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTP Request sampler other means of sending data

Posted by Remedy QA <re...@yahoo.com>.
Actually, the request is sent by the browser in UTF-8.  The target application will also return in UTF-8.  

Peter Lin <wo...@gmail.com> wrote:sounds like that isn't following the standard. I'm guessing the
request is sent by a program and not a browser.

I'm going to guess the target application uses servlet mapping and
routing to return the correct http resource. If that is the case,
you're probably going to have to write a new sampler and manually
manipulate the request and request header.

peter



On Wed, 28 Jul 2004 11:49:32 -0700 (PDT), Remedy QA wrote:
> What I mean is that HTTP Request sampler sends URL encoded request data but I would like the option to not do that.
> Suppose my data string is such:
> 
> 148/GetTableEntryList/8/
> 
> Using the HTTP Request sampler, it will URL encode it before sending to the web server:
> 
> 148%2FGetTableEntryList%2F8%2F
> 
> I would like to send just the raw data in a post method but not in a form action submit post method.
> 
> joelsherriff wrote:
> Could you include an example here? I'm trying to compile a list of issues
> such as this and I'm not sure I understand what the problem is.
> 
> J
> 
> 
> ----- Original Message -----
> From: "Remedy QA"
> To: "JMeter User List"
> Sent: Tuesday, July 27, 2004 9:05 PM
> Subject: HTTP Request sampler other means of sending data
> 
> > The current HTTP Request sampler sends form action type parameter/value
> pairings. But what if I just want to send plain form post data so that on
> the mid-tier end, the request data is read directly from the input stream
> (socket)?
> >
> > Using the proxy to record such a behavior doesn't allow jmeter to send the
> correct request data. The recording tries to break the complete data stream
> into parameter/value pairing.
> >
> > Is there any workaround?
> >
> > Thanks,
> > mabel
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: HTTP Request sampler other means of sending data

Posted by Peter Lin <wo...@gmail.com>.
sounds like that isn't following the standard.  I'm guessing the
request is sent by a program and not a browser.

I'm going to guess the target application uses servlet mapping and
routing to return the correct http resource. If that is the case,
you're probably going to have to write a new sampler and manually
manipulate the request and request header.

peter



On Wed, 28 Jul 2004 11:49:32 -0700 (PDT), Remedy QA <re...@yahoo.com> wrote:
> What I mean is that HTTP Request sampler sends URL encoded request data but I would like the option to not do that.
> Suppose my data string is such:
> 
> 148/GetTableEntryList/8/
> 
> Using the HTTP Request sampler, it  will URL encode it before sending to the web server:
> 
> 148%2FGetTableEntryList%2F8%2F
> 
> I would like to send just the raw data in a post method but not in a form action submit post method.
> 
> joelsherriff <jo...@comcast.net> wrote:
> Could you include an example here? I'm trying to compile a list of issues
> such as this and I'm not sure I understand what the problem is.
> 
> J
> 
> 
> ----- Original Message -----
> From: "Remedy QA"
> To: "JMeter User List"
> Sent: Tuesday, July 27, 2004 9:05 PM
> Subject: HTTP Request sampler other means of sending data
> 
> > The current HTTP Request sampler sends form action type parameter/value
> pairings. But what if I just want to send plain form post data so that on
> the mid-tier end, the request data is read directly from the input stream
> (socket)?
> >
> > Using the proxy to record such a behavior doesn't allow jmeter to send the
> correct request data. The recording tries to break the complete data stream
> into parameter/value pairing.
> >
> > Is there any workaround?
> >
> > Thanks,
> > mabel
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTP Request sampler other means of sending data

Posted by Remedy QA <re...@yahoo.com>.
What I mean is that HTTP Request sampler sends URL encoded request data but I would like the option to not do that.
Suppose my data string is such:
 
148/GetTableEntryList/8/
 
Using the HTTP Request sampler, it  will URL encode it before sending to the web server:
 
148%2FGetTableEntryList%2F8%2F
 
I would like to send just the raw data in a post method but not in a form action submit post method.

joelsherriff <jo...@comcast.net> wrote:
Could you include an example here? I'm trying to compile a list of issues
such as this and I'm not sure I understand what the problem is.

J


----- Original Message ----- 
From: "Remedy QA" 
To: "JMeter User List" 
Sent: Tuesday, July 27, 2004 9:05 PM
Subject: HTTP Request sampler other means of sending data


> The current HTTP Request sampler sends form action type parameter/value
pairings. But what if I just want to send plain form post data so that on
the mid-tier end, the request data is read directly from the input stream
(socket)?
>
> Using the proxy to record such a behavior doesn't allow jmeter to send the
correct request data. The recording tries to break the complete data stream
into parameter/value pairing.
>
> Is there any workaround?
>
> Thanks,
> mabel
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

Re: HTTP Request sampler other means of sending data

Posted by joelsherriff <jo...@comcast.net>.
Could you include an example here?  I'm trying to compile a list of issues
such as this and I'm not sure I understand what the problem is.

J


----- Original Message ----- 
From: "Remedy QA" <re...@yahoo.com>
To: "JMeter User List" <jm...@jakarta.apache.org>
Sent: Tuesday, July 27, 2004 9:05 PM
Subject: HTTP Request sampler other means of sending data


> The current HTTP Request sampler sends form action type parameter/value
pairings.  But what if I just want to send plain form post data so that on
the mid-tier end, the request data is read directly from the input stream
(socket)?
>
> Using the proxy to record such a behavior doesn't allow jmeter to send the
correct request data.  The recording tries to break the complete data stream
into parameter/value pairing.
>
> Is there any workaround?
>
> Thanks,
> mabel
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Java Request with multiple different logins

Posted by Yongyut Chumpoo <jy...@yahoo.com>.
Hi All,
I am developing IM server that serves J2ME chat client.
I 'd like to simulate say around 100 different users with different username and password
connecting to the server by using HttpURLConnection.
I 've used Java Request Sample by extending AbstractJavaSamplerClient.
But I don't know how to get username & password from User Parameters 
and get those thread to fire request with different username & password.
Any direction is much appreciated.

Juth

 

 

 

 

 

 

		
---------------------------------
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.

Re: HTTP Request sampler other means of sending data

Posted by joelsherriff <jo...@comcast.net>.
If you have a winsock tracing tool that might help also.  I've found that
what's shown on the Request tab isn't necessarily what's really sent to the
server.

----- Original Message ----- 
From: "Remedy QA" <re...@yahoo.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Wednesday, July 28, 2004 3:15 PM
Subject: Re: HTTP Request sampler other means of sending data


> That's what I'm going to try next. Thanks.
>
> Peter Lin <wo...@gmail.com> wrote:what do you see on the serverside of
things?
>
> for jmeter development I have a simple little echo servlet for POST
> data. When ever I want to see exactly what is sent in the post method,
> I hit the servlet. I would suggest using something like that to see
> what is going on.
>
> peter
>
>
> On Wed, 28 Jul 2004 12:01:46 -0700 (PDT), Remedy QA wrote:
> > I tried using the Soap/XML-rpc request. This is what I put on the
request. (I changed the hostname and servlet name):
> >
> > URL: http://hostname8/context/Servletname
> > Soap-XML-Data: 148/GetTableEntryList/8/
> >
> > And this is the request sent to web server:
> >
> > POST http://hostname8/context/Servletname
> > Query data:
> >
> > Cookie Data:
> > JSESSIONID=VNReQITT0G7q-PvpqiJMBUH0KUs;
IP-Restriction-GUID=7afb680098cdd462:1d381d2:fe0706a89e:-7ffe
> > Referer: http://hostname8/context/jspname.jsp
> > Host: hostname
> > Accept-Language: en-us
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> > Pragma: no-cache
> > Content-Type: text/plain; charset=UTF-8
> > Accept: */*
> > Content-Length: 152
> >
> > Where did my data go? According to the docs, "It can also be used to
send XML-RPC over HTTP. It creates an HTTP POST request, with the specified
XML as the POST content." So I would assume my data should be attached to
the request.
> >
> >
> >
> > Michael Stover wrote:
> > The Soap/Xml-rpc request might be what you need. It's simplistic
> > though, and the proxy server doesn't know how to distinguish between
> > normal param/value data and just plain text.
> >
> > -Mike
> >
> > On Tue, 2004-07-27 at 21:05, Remedy QA wrote:
> > > The current HTTP Request sampler sends form action type
parameter/value pairings. But what if I just want to send plain form post
data so that on the mid-tier end, the request data is read directly from the
input stream (socket)?
> > >
> > > Using the proxy to record such a behavior doesn't allow jmeter to send
the correct request data. The recording tries to break the complete data
stream into parameter/value pairing.
> > >
> > > Is there any workaround?
> > >
> > > Thanks,
> > > mabel
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Yahoo! Mail - 50x more storage than other providers!
> > --
> > Michael Stover
> > Apache Software Foundation
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTP Request sampler other means of sending data

Posted by Remedy QA <re...@yahoo.com>.
That's what I'm going to try next. Thanks.

Peter Lin <wo...@gmail.com> wrote:what do you see on the serverside of things?

for jmeter development I have a simple little echo servlet for POST
data. When ever I want to see exactly what is sent in the post method,
I hit the servlet. I would suggest using something like that to see
what is going on.

peter


On Wed, 28 Jul 2004 12:01:46 -0700 (PDT), Remedy QA wrote:
> I tried using the Soap/XML-rpc request. This is what I put on the request. (I changed the hostname and servlet name):
> 
> URL: http://hostname8/context/Servletname
> Soap-XML-Data: 148/GetTableEntryList/8/
> 
> And this is the request sent to web server:
> 
> POST http://hostname8/context/Servletname
> Query data:
> 
> Cookie Data:
> JSESSIONID=VNReQITT0G7q-PvpqiJMBUH0KUs; IP-Restriction-GUID=7afb680098cdd462:1d381d2:fe0706a89e:-7ffe
> Referer: http://hostname8/context/jspname.jsp
> Host: hostname
> Accept-Language: en-us
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> Pragma: no-cache
> Content-Type: text/plain; charset=UTF-8
> Accept: */*
> Content-Length: 152
> 
> Where did my data go? According to the docs, "It can also be used to send XML-RPC over HTTP. It creates an HTTP POST request, with the specified XML as the POST content." So I would assume my data should be attached to the request.
> 
> 
> 
> Michael Stover wrote:
> The Soap/Xml-rpc request might be what you need. It's simplistic
> though, and the proxy server doesn't know how to distinguish between
> normal param/value data and just plain text.
> 
> -Mike
> 
> On Tue, 2004-07-27 at 21:05, Remedy QA wrote:
> > The current HTTP Request sampler sends form action type parameter/value pairings. But what if I just want to send plain form post data so that on the mid-tier end, the request data is read directly from the input stream (socket)?
> >
> > Using the proxy to record such a behavior doesn't allow jmeter to send the correct request data. The recording tries to break the complete data stream into parameter/value pairing.
> >
> > Is there any workaround?
> >
> > Thanks,
> > mabel
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> --
> Michael Stover
> Apache Software Foundation
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: HTTP Request sampler other means of sending data

Posted by Peter Lin <wo...@gmail.com>.
what do you see on the serverside of things?

for jmeter development I have a simple little echo servlet for POST
data. When ever I want to see exactly what is sent in the post method,
I hit the servlet.  I would suggest using something like that to see
what is going on.

peter


On Wed, 28 Jul 2004 12:01:46 -0700 (PDT), Remedy QA <re...@yahoo.com> wrote:
> I tried using the Soap/XML-rpc request. This is what I put on the request. (I changed the hostname and servlet name):
> 
> URL: http://hostname8/context/Servletname
> Soap-XML-Data: 148/GetTableEntryList/8/
> 
> And this is the request sent to web server:
> 
> POST http://hostname8/context/Servletname
> Query data:
> 
> Cookie Data:
> JSESSIONID=VNReQITT0G7q-PvpqiJMBUH0KUs; IP-Restriction-GUID=7afb680098cdd462:1d381d2:fe0706a89e:-7ffe
> Referer: http://hostname8/context/jspname.jsp
> Host: hostname
> Accept-Language: en-us
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> Pragma: no-cache
> Content-Type: text/plain; charset=UTF-8
> Accept: */*
> Content-Length: 152
> 
> Where did my data go?  According to the docs, "It can also be used to send XML-RPC over HTTP. It creates an HTTP POST request, with the specified XML as the POST content."  So I would assume my data should be attached to the request.
> 
> 
> 
> Michael Stover <ms...@apache.org> wrote:
> The Soap/Xml-rpc request might be what you need. It's simplistic
> though, and the proxy server doesn't know how to distinguish between
> normal param/value data and just plain text.
> 
> -Mike
> 
> On Tue, 2004-07-27 at 21:05, Remedy QA wrote:
> > The current HTTP Request sampler sends form action type parameter/value pairings. But what if I just want to send plain form post data so that on the mid-tier end, the request data is read directly from the input stream (socket)?
> >
> > Using the proxy to record such a behavior doesn't allow jmeter to send the correct request data. The recording tries to break the complete data stream into parameter/value pairing.
> >
> > Is there any workaround?
> >
> > Thanks,
> > mabel
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> --
> Michael Stover
> Apache Software Foundation
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: HTTP Request sampler other means of sending data

Posted by Remedy QA <re...@yahoo.com>.
I tried using the Soap/XML-rpc request. This is what I put on the request. (I changed the hostname and servlet name):
 
URL: http://hostname8/context/Servletname
Soap-XML-Data: 148/GetTableEntryList/8/
 
And this is the request sent to web server:
 
POST http://hostname8/context/Servletname
Query data:

Cookie Data:
JSESSIONID=VNReQITT0G7q-PvpqiJMBUH0KUs; IP-Restriction-GUID=7afb680098cdd462:1d381d2:fe0706a89e:-7ffe
Referer: http://hostname8/context/jspname.jsp
Host: hostname
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Pragma: no-cache
Content-Type: text/plain; charset=UTF-8
Accept: */*
Content-Length: 152
 
Where did my data go?  According to the docs, "It can also be used to send XML-RPC over HTTP. It creates an HTTP POST request, with the specified XML as the POST content."  So I would assume my data should be attached to the request.

Michael Stover <ms...@apache.org> wrote:
The Soap/Xml-rpc request might be what you need. It's simplistic
though, and the proxy server doesn't know how to distinguish between
normal param/value data and just plain text.

-Mike

On Tue, 2004-07-27 at 21:05, Remedy QA wrote:
> The current HTTP Request sampler sends form action type parameter/value pairings. But what if I just want to send plain form post data so that on the mid-tier end, the request data is read directly from the input stream (socket)? 
> 
> Using the proxy to record such a behavior doesn't allow jmeter to send the correct request data. The recording tries to break the complete data stream into parameter/value pairing.
> 
> Is there any workaround? 
> 
> Thanks,
> mabel 
> 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
-- 
Michael Stover 
Apache Software Foundation


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: HTTP Request sampler other means of sending data

Posted by Michael Stover <ms...@apache.org>.
The Soap/Xml-rpc request might be what you need.  It's simplistic
though, and the proxy server doesn't know how to distinguish between
normal param/value data and just plain text.

-Mike

On Tue, 2004-07-27 at 21:05, Remedy QA wrote:
> The current HTTP Request sampler sends form action type parameter/value pairings.  But what if I just want to send plain form post data so that on the mid-tier end, the request data is read directly from the input stream (socket)?  
>  
> Using the proxy to record such a behavior doesn't allow jmeter to send the correct request data.  The recording tries to break the complete data stream into parameter/value pairing.
>  
> Is there any workaround? 
>  
> Thanks,
> mabel  
> 
> 
> 
> 		
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
-- 
Michael Stover <ms...@apache.org>
Apache Software Foundation


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org