[Tsung] Tsung, Http, Post, Simulate, File, Upload

Nicolas Niclausse nicolas at niclux.org
Sun Sep 30 21:30:12 CEST 2007


Mats Westin a écrit :
> Is it possible to make a http post with Tsung to simulate a file upload?
> 
> <form id="form1" action="" method="post" enctype="multipart/form-data">
> 
Hi,

You want to do something like that ?

<http url="/" method="POST" contents_from_file="/mypath/myfile"/>

Currently, you can only do POST requests with the contents data inside
the XML:

<http url="/" method="POST" contents="bla=blu"/>

It should be easy to do that using file:read_file() in ts_config_http

--
Nicolas


More information about the Tsung-users mailing list