[Tsung] Re: Help with https recording / Browser configuration

Isaac Uribe isaac.uribe at gmail.com
Tue Sep 25 00:05:30 CEST 2007


Oh well,

It looks like browsers are checking the string after XXX:// to be a
valid host name... So, instead of de-configuring browsers, I modified
Tsung's source code to use "http://ssl-" instead of "http://{", and I
was able to record a session through firefox an opera (Don't you just
love OpenSource?).

#In files:
vi ./tsung-1.2.1/doc/user_manual.html
vi ./tsung-1.2.1/src/tsung/ts_utils.erl
vi ./tsung-1.2.1/src/tsung_recorder/ts_proxy_http.erl

#Change:
"//{" with "//ssl-"
"%7B" -> "%073%073%033"

#vi search and replace on every file:
:%s/\/\/{/\/\/ssl-/g
:%s/%7B/%073%073%033/g

#./configure; make; make install

I could try to contribute some code to make the string used with https
proxy recorder convertion a configuration option instead of a
hard-coded string (I say "Try", because I recently got my copy of
"Programming Erlang" and start learning some Erlang... doing a little
exercise with a whois plugin for tsung:
http://www.isaacuribe.name/node/2).

If you think it would be useful, I can try coding it on the weekend..

Cheers,

On 9/24/07, Isaac Uribe <isaac.uribe at gmail.com> wrote:
> Hi all,
>
> First of all, thanks for this great software!
>
> I'm having a problem trying to record a session with https. The docs
> say: "For HTTPS recording, use http://{ instead of https:// in your
> browser", so I tried that on different browsers (Opera, Firefox, IE),
> even "wget", but I get pretty much the same error message from the
> browser: "BROWSER can't find the server at {NAME_OF_PAGE".
>
> I'm sure "tsung recorder" is working fine, I've used it to record a
> couple of HTTP sessions through several GUI browsers, and I did this
> test on the command line:
>
> tsung recorder
>         #Creating Tsung log directory /home/erl/.tsung/log
>         #Starting Tsung recorder on port 8090
>         #Record file: RECORD_FILE.xml
> telnet MYIP 8090
> GET http://NAME_OF_PAGE/ HTTP/1.0
>
> Tailing RECORD_FILE.xml I can see a new entry:
>
> <request><http url='http://NAME_OF_PAGE' version='1.0'
> method='GET'></http></request>
>
> Now, with https:
>
> telnet MYIP 8090
> GET http://{NAME_OF_PAGE/ HTTP/1.0
>
> And, there it is, a new entry as expected:
>
> <request><http url='https://NAME_OF_PAGE/' version='1.0'
> method='GET'></http></request>
>
> I just can't find a way to make it work on GUI browsers.
>
> I know this is not at all a Tsung issue, It's a browser related
> extra-validation, I was just wondering if somebody could point me into
> the right direction to configure any GUI Browser and be able to use
> "http://{" on the address bar.
>
> Thanks in advance.
>
> --
> Isaac,
>
> "Limit" is a state of mind....
>


-- 
Isaac,

"Limit" is a state of mind....


More information about the Tsung-users mailing list