You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by m....@pentacomp.com.pl on 2002/10/02 18:19:14 UTC

RedirectURL problem in HTTPSampler (?)

Hi, 

I'd like to ask why in method redirectURL, class HTTPSampler there is no 
code about protocol and port? That's why for example this doesn't work: 

Request page: http://server:8080/bar/foo
which returns 302 status and header
Location: https://server:8443/foo/bar 

Jmeter tries to load http://server:8080/foo/bar instead of 
https://server:8443/bar/foo 

Why not to add this ?
	URL newUrl = new URL(loc);
       setProtocol(newUrl.getProtocol()); (!)
       setPort(newUrl.getPort());         (!)
       setMethod(GET); 


And the second issue: more than 1 redirect seem not to work. What is the 
original purpose of variable "redirected" in HTTPSampler.sample(bool) ? 
Setting this always to false allows redirect chain... 

best regards
Michal Kostrzewa 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>