[Tsung] Reading External File for ts_http

Muhamad Fadli Ishak fadliishak at gmail.com
Tue Jan 29 01:39:24 CET 2008


Thanks Pablo. I totally missed that one. ^__^

Regards,
Fadli

On Jan 29, 2008 2:16 AM, Pablo Polvorin <ppolv at yahoo.com.ar> wrote:

> Yes, i think your problem was the second. You seems to not being using
> the  Pid var in user/1.. so  shouldn´t be a problem that its actually bound
> to a record.
> About the escaped "&" in the script, see
> http://lists.process-one.net/pipermail/tsung-users/2007-December/000707.html
>
> Cheers,
> pablo.
>
>
>
>
> *Muhamad Fadli Ishak <fadliishak at gmail.com>* escribió:
>
> Finally got it to work.
>
> We made two changes. There were:
>
> 1) Erl Script from
> user(Pid) to user({Pid,DynData})
>
> 2) Change Erl Script from
> "login_id=" ++ Username ++"&amp;login_pwd=" ++ Passwd.
> to
> "login_id=" ++ Username ++"&login_pwd=" ++ Passwd.
>
>
> I dont think the first point is the problem. If it is then the manual
> should be corrected as well.
>
>
> What we did was, displaying the value retrieved from the file.
>
> <request subst="true"><http
> url='/dologin.php?random=%%ts_user_server:get_unique_id%%&amp;log=%%readcsv:user%%'
> version='1.1'
> contents='%%readcsv:user%%&amp;skin=lightblue'
> content_type='application/x-www-form-urlencoded'
> method='POST'></http></request>
>
>
> From the log (Our own Server's log):
> login_id=test1&amp;login_pwd=password1
>
>
> This is correct and the same with my original code:
> <request subst="true"><http
> url='/dologin.php?random=%%ts_user_server:get_unique_id%%' version='1.1'
> contents='login_id=test1&amp;login_pwd=password1&amp;skin=lightblue'
> content_type='application/x-www-form-urlencoded'
> method='POST'></http></request>
>
> Instead of using "login_id=" ++ Username ++"&amp;login_pwd=" ++ Passwd. as
> in manual.
> I changed to "login_id=" ++ Username ++"&login_pwd=" ++ Passwd.
>
> And that solved the problem. I dont know if that really the answers and I
> dont quite understand myself.
> We only changed two things and it works. ^__^;
>
>
>
> _______________________________________________
> Tsung-users mailing list
> Tsung-users at lists.process-one.net
> https://lists.process-one.net/mailman/listinfo/tsung-users
>
>
> ------------------------------
>
> Los referentes más importantes en compra/venta de autos se juntaron:
> Demotores y Yahoo!. Ahora comprar o vender tu auto es más fácil.
> Visitá http://ar.autos.yahoo.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20080129/5c550cd9/attachment.html


More information about the Tsung-users mailing list