You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Cesar Sosa <ce...@fitnyc.edu> on 2014/03/19 20:50:33 UTC

Problems authenticating using "@" as sid

I am using JMeter 2.11 to load test Self Service on a Weblogic Server and I
am having problem authenticating.  In the ValLogin page, I created two
variables
sid  ${sid}
pin   ${pin}
The format for sid is like "@01251234" and pin is "1234", but are having
problems when running the script.   If I go the manual way and insert the
values into the varialbes, I don't have any problems.  Is there any way
that I can resolve this issue?


*Cesar Sosa*

*Banner/Oracle Database Administrator*

RE: Problems authenticating using "@" as sid

Posted by Jeff Ohrstrom <jo...@hotmail.com>.
Yea it is being URL encoded. Does the server expect that? Try it in the 'POST Body' text field instead of the default way (I forget what to call it).  that way it can be the static "sid=@01294064&pin=082396" and not formatted differently.  Or there's a checkbox there to url encode and inlude =.  Try unchecking the url encode. 

Also did you redact the cookies or do you just not have them?     Maybe you need the cookies set before you POST.  Are you doing a GET on the URL before you POST the user/login? Or do you just jump right to the POST?  

If you're not doing the GET before the POST, try doing that.  And also using a Jmeter Cookie-Manager config element to store the cookies from the GET to be used in the subsequent POST. 

From: cesar_sosa@fitnyc.edu
Date: Mon, 24 Mar 2014 09:42:30 -0400
Subject: Re: Problems authenticating using "@" as sid
To: user@jmeter.apache.org

I am passing the variables as shown below in a post POST submit form. 

Jmeter is sending this in the request form and I am not getting any errors in the jmeter.log.

****Sampler result.Thread Name: Thread Group 1-1Sample Start: 2014-03-24 09:37:52 EDTLoad time: 19Latency: 19Size in bytes: 7553

Headers size in bytes: 320Body size in bytes: 7233Sample Count: 1Error Count: 0Response code: 200Response message: OK
Response headers:

HTTP/1.1 200 OKDate: Mon, 24 Mar 2014 13:37:52 GMTServer: Oracle-Application-Server-11gContent-Length: 7233Set-Cookie: SESSID=;expires=Mon, 01-Jan-1990 08:00:00 GMT

Set-Cookie: PROXY_HASH=;expires=Mon, 01-Jan-1990 08:00:00 GMTConnection: closeContent-Type: text/html; charset=UTF-8Content-Language: en

HTTPSampleResult fields:

ContentType: text/html; charset=UTF-8DataEncoding: UTF-8
****Request.POST http://xxx.xxx.xxx./devssb/twbkwbis.P_ValLogin


POST data:sid=%4001294064&pin=082396    
Cookie Data:TESTID=set; accessibility=false
Request Headers:Accept-Language: en-US,en;q=0.5

Content-Length: 30Referer: http:/xxx.xxx.xxx/devssb/twbkwbis.P_WWWLoginAccept-Encoding: gzip, deflateUser-Agent: Mozilla/5.0 (Windows NT 6.1; rv:27.0) Gecko/20100101 Firefox/27.0

Connection: keep-aliveContent-Type: application/x-www-form-urlencodedAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Cesar Sosa
Banner/Oracle Database Administrator
Fashion Institute of Technology



On Sun, Mar 23, 2014 at 8:53 PM, Jeff Ohrstrom <jo...@hotmail.com> wrote:


We're going to need more information probably.  Are you sending these variables as header key/value pairs, in a POST submit form or in a url query string.



Without knowing more I'm guessing the '@' character is getting url encoded through Jmeter which the server didn't expect.



What does Jmeter send out on the wire (through a 'view results in a tree' listener or through http debug logs) versus what is expected (I'm assuming how you send it through a web browser?).



> From: cesar_sosa@fitnyc.edu

> Date: Wed, 19 Mar 2014 15:50:33 -0400

> Subject: Problems authenticating using "@" as sid

> To: user@jmeter.apache.org

>

> I am using JMeter 2.11 to load test Self Service on a Weblogic Server and I

> am having problem authenticating.  In the ValLogin page, I created two

> variables

> sid  ${sid}

> pin   ${pin}

> The format for sid is like "@01251234" and pin is "1234", but are having

> problems when running the script.   If I go the manual way and insert the

> values into the varialbes, I don't have any problems.  Is there any way

> that I can resolve this issue?

>

>

> *Cesar Sosa*

>

> *Banner/Oracle Database Administrator*

                                          
 		 	   		  

Re: Problems authenticating using "@" as sid

Posted by Cesar Sosa <ce...@fitnyc.edu>.
I am passing the variables as shown below in a post POST submit form.
[image: Inline image 1]

Jmeter is sending this in the request form and I am not getting any errors
in the jmeter.log.
****
*Sampler resul*t.
Thread Name: Thread Group 1-1
Sample Start: 2014-03-24 09:37:52 EDT
Load time: 19
Latency: 19
Size in bytes: 7553
Headers size in bytes: 320
Body size in bytes: 7233
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

Response headers:
HTTP/1.1 200 OK
Date: Mon, 24 Mar 2014 13:37:52 GMT
Server: Oracle-Application-Server-11g
Content-Length: 7233
Set-Cookie: SESSID=;expires=Mon, 01-Jan-1990 08:00:00 GMT
Set-Cookie: PROXY_HASH=;expires=Mon, 01-Jan-1990 08:00:00 GMT
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Language: en


HTTPSampleResult fields:
ContentType: text/html; charset=UTF-8
DataEncoding: UTF-8

****
*Request.*
POST http://xxx.xxx.xxx./devssb/twbkwbis.P_ValLogin

POST data:
sid=%4001294064&pin=082396

Cookie Data:
TESTID=set; accessibility=false

Request Headers:
Accept-Language: en-US,en;q=0.5
Content-Length: 30
Referer: http:/xxx.xxx.xxx/devssb/twbkwbis.P_WWWLogin
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:27.0) Gecko/20100101
Firefox/27.0
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8


*Cesar Sosa*

*Banner/Oracle Database Administrator*
*Fashion Institute of Technology*


On Sun, Mar 23, 2014 at 8:53 PM, Jeff Ohrstrom <jo...@hotmail.com>wrote:

> We're going to need more information probably.  Are you sending these
> variables as header key/value pairs, in a POST submit form or in a url
> query string.
>
> Without knowing more I'm guessing the '@' character is getting url encoded
> through Jmeter which the server didn't expect.
>
> What does Jmeter send out on the wire (through a 'view results in a tree'
> listener or through http debug logs) versus what is expected (I'm assuming
> how you send it through a web browser?).
>
> > From: cesar_sosa@fitnyc.edu
> > Date: Wed, 19 Mar 2014 15:50:33 -0400
> > Subject: Problems authenticating using "@" as sid
> > To: user@jmeter.apache.org
> >
> > I am using JMeter 2.11 to load test Self Service on a Weblogic Server
> and I
> > am having problem authenticating.  In the ValLogin page, I created two
> > variables
> > sid  ${sid}
> > pin   ${pin}
> > The format for sid is like "@01251234" and pin is "1234", but are having
> > problems when running the script.   If I go the manual way and insert the
> > values into the varialbes, I don't have any problems.  Is there any way
> > that I can resolve this issue?
> >
> >
> > *Cesar Sosa*
> >
> > *Banner/Oracle Database Administrator*
>

RE: Problems authenticating using "@" as sid

Posted by Jeff Ohrstrom <jo...@hotmail.com>.
We're going to need more information probably.  Are you sending these variables as header key/value pairs, in a POST submit form or in a url query string.  

Without knowing more I'm guessing the '@' character is getting url encoded through Jmeter which the server didn't expect. 

What does Jmeter send out on the wire (through a 'view results in a tree' listener or through http debug logs) versus what is expected (I'm assuming how you send it through a web browser?).

> From: cesar_sosa@fitnyc.edu
> Date: Wed, 19 Mar 2014 15:50:33 -0400
> Subject: Problems authenticating using "@" as sid
> To: user@jmeter.apache.org
> 
> I am using JMeter 2.11 to load test Self Service on a Weblogic Server and I
> am having problem authenticating.  In the ValLogin page, I created two
> variables
> sid  ${sid}
> pin   ${pin}
> The format for sid is like "@01251234" and pin is "1234", but are having
> problems when running the script.   If I go the manual way and insert the
> values into the varialbes, I don't have any problems.  Is there any way
> that I can resolve this issue?
> 
> 
> *Cesar Sosa*
> 
> *Banner/Oracle Database Administrator*