jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Wiedenhöft <priv...@tom-wiedenhoeft.de>
Subject Blanks in URL's of http/https Requests
Date Tue, 04 Feb 2003 10:06:56 GMT
Hallo!

I'm using code of JMeter and I'm quite sure, that URL's with blanks " " in 
Http Request won't work.

This line of code will fix it.

//---schnipp--------------------
Sting url = "http://www.myserver.net/my dir/myf ile.htm";
url = url.replaceAll("\\p{Blank}", "%20");
URL u = new URL(url); 
...and so on.
//---schnapp--------------------

(If "$" and "\" are in the text (here "String url") an exception is thrown. 
Ok,..)

I hope this comment will be usefull.

Tom


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


Mime
View raw message