You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ari Heino <ex...@tieto.com> on 2009/05/20 14:01:48 UTC

Recorded server name problem

Hi!

I'm trying to record request coming from ApacheHttpClient to web application
server.

Example request:
1 > GET http://localhost:8080/webservices/projects
1 > Authorization: Basic *******
1 > Host: localhost:8080
1 > User-Agent: Jakarta Commons-HttpClient/3.1
1 > Content-Type: text/xml
1 > Accept: text/xml

I have "HTTP Request Defaults" defined:
Server name or IP: localhost
port: 8080

I have "HTTP Proxy Server" defined:
port: 8088


When i make a request vie Jmeter proxy, what JMeter records is as "Http
Request":
Name: /webservices/projects
Server name or IP: /webservices/projects
Path: /webservices/projects

So the server name comes from path somehow and isn't the expected empty (or
the very least "localhost").

Anyone have an idea why is this?

I haev Basic Authentication setup for my server, could that cause this
problem of server name getting wrong?

-- 
View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23634097.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: Recorded server name problem

Posted by Ari Heino <ex...@tieto.com>.


Ari Heino wrote:
> 
> 
> So since what I'm really after is recording actions from ApacheHttpClient
> (from inside Eclipse environment), how would I go about recording those? I
> need to set proxy for ApacheHttpClient? Because the actions for now have
> been recorded with the same problem as from browser.
> 
> I don't really need proxy settings for browser, since that doesn't affect
> eclipse.
> 
> 
Okay, setting proxy for the http client fixed the recording problem.

Cheers!
-- 
View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23701835.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: Recorded server name problem

Posted by Ari Heino <ex...@tieto.com>.


sebb-2-2 wrote:
> 
> 
>>  And removing HTTP Request Defaults doesn't change the recorded Server
>> name
>>  or IP value, it's still "webservices/projects".
>>
> 
> Does the proxy work OK if you are recording other URLs?
> 
> Have you set the browser proxy correctly?
> 
> If you connect directly to the proxy server - e.g.
> http://localhost:8088/webservices/projects - then JMeter records the
> host as the path. But in that case, of course the request fails and
> the response to the browser will show this.
> 
> 

So since what I'm really after is recording actions from ApacheHttpClient
(from inside Eclipse environment), how would I go about recording those? I
need to set proxy for ApacheHttpClient? Because the actions for now have
been recorded with the same problem as from browser.

I don't really need proxy settings for browser, since that doesn't affect
eclipse.

-- 
View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23701684.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: LDAPI Test using JMeter

Posted by sebb <se...@gmail.com>.
On 22/05/2009, Sudhir Dharanendraiah <sd...@redhat.com> wrote:
> Hi,
>
>  Can we run ldapi tests with JMeter? If yes, how can we configure the same?

Assuming you mean LDAP over Unix sockets, then there is no support for LDAPI.

>  Appreciate your help.
>
>  Regards,
>  Sudhir
>
>

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


LDAPI Test using JMeter

Posted by Sudhir Dharanendraiah <sd...@redhat.com>.
Hi,

Can we run ldapi tests with JMeter? If yes, how can we configure the 
same?

Appreciate your help.

Regards,
Sudhir


Re: Recorded server name problem

Posted by sebb <se...@gmail.com>.
On 22/05/2009, Ari Heino <ex...@tieto.com> wrote:
>
>
>
>  sebb-2-2 wrote:
>  >
>  >
>  > Which version of JMeter?
>  >
>  > Does it work if you remove the HTTP Request Defaults?
>  >
>  >
>
>
> Like mentioned in my original post, I'm using JMeter 2.3.2.

Huh? I don't see that in this thread.

>  And removing HTTP Request Defaults doesn't change the recorded Server name
>  or IP value, it's still "webservices/projects".
>

Does the proxy work OK if you are recording other URLs?

Have you set the browser proxy correctly?

If you connect directly to the proxy server - e.g.
http://localhost:8088/webservices/projects - then JMeter records the
host as the path. But in that case, of course the request fails and
the response to the browser will show this.


>  --
>  View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23668320.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


Re: Recorded server name problem

Posted by Ari Heino <ex...@tieto.com>.


sebb-2-2 wrote:
> 
> 
> Which version of JMeter?
> 
> Does it work if you remove the HTTP Request Defaults?
> 
> 

Like mentioned in my original post, I'm using JMeter 2.3.2.

And removing HTTP Request Defaults doesn't change the recorded Server name
or IP value, it's still "webservices/projects".

-- 
View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23668320.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: Recorded server name problem

Posted by sebb <se...@gmail.com>.
On 22/05/2009, Ari Heino <ex...@tieto.com> wrote:
>
>
>
>  sebb-2-2 wrote:
>  >
>  >
>  >>  So the server name comes from path somehow and isn't the expected empty
>  >> (or
>  >>  the very least "localhost").
>  >>
>  >>  Anyone have an idea why is this?
>  >
>  > No, this works fine with a browser.
>  >
>
>
> Not for me it doesn't => reason why i made this thread....
>
>
>  sebb-2-2 wrote:
>  >
>  >>  I have Basic Authentication setup for my server, could that cause this
>
> >>  problem of server name getting wrong?
>  >>
>  >
>  > Can you try it and see?
>  >
>  >
>
> No change even if i took basic authentication off. Still shows
>  "webservices/projects" as Server name or IP.
>

Which version of JMeter?

Does it work if you remove the HTTP Request Defaults?

>  --
>  View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23665783.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


Re: Recorded server name problem

Posted by Ari Heino <ex...@tieto.com>.


sebb-2-2 wrote:
> 
> 
>>  So the server name comes from path somehow and isn't the expected empty
>> (or
>>  the very least "localhost").
>>
>>  Anyone have an idea why is this?
> 
> No, this works fine with a browser.
> 

Not for me it doesn't => reason why i made this thread....


sebb-2-2 wrote:
> 
>>  I have Basic Authentication setup for my server, could that cause this
>>  problem of server name getting wrong?
>>
> 
> Can you try it and see?
> 
> 
No change even if i took basic authentication off. Still shows
"webservices/projects" as Server name or IP.

-- 
View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23665783.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: Recorded server name problem

Posted by sebb <se...@gmail.com>.
On 20/05/2009, Ari Heino <ex...@tieto.com> wrote:
>
>  Hi!
>
>  I'm trying to record request coming from ApacheHttpClient to web application
>  server.
>
>  Example request:
>  1 > GET http://localhost:8080/webservices/projects
>  1 > Authorization: Basic *******
>  1 > Host: localhost:8080
>  1 > User-Agent: Jakarta Commons-HttpClient/3.1
>  1 > Content-Type: text/xml
>  1 > Accept: text/xml
>
>  I have "HTTP Request Defaults" defined:
>  Server name or IP: localhost
>  port: 8080
>
>  I have "HTTP Proxy Server" defined:
>  port: 8088
>
>
>  When i make a request vie Jmeter proxy, what JMeter records is as "Http
>  Request":
>  Name: /webservices/projects
>  Server name or IP: /webservices/projects
>  Path: /webservices/projects
>
>  So the server name comes from path somehow and isn't the expected empty (or
>  the very least "localhost").
>
>  Anyone have an idea why is this?

No, this works fine with a browser.

>  I haev Basic Authentication setup for my server, could that cause this
>  problem of server name getting wrong?
>

Can you try it and see?

>  --
>  View this message in context: http://www.nabble.com/Recorded-server-name-problem-tp23634097p23634097.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