JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.91k stars 386 forks source link

file directive or default URL file doesn't work #170

Open neoacevedo opened 4 years ago

neoacevedo commented 4 years ago

Good, I set the -f directive to use an external URL file with some URLs, one of them with a post method.

Launching siege, it simply ignores this directive. Now, configuring the same URLs in its default file, neither works.

JoeDog commented 4 years ago

Works fine for me:

$ siege -f urls.txt -c2 --no-parse --reps=once SIEGE 4.0.5 Preparing 2 concurrent users for battle. The server is now under siege... HTTP/1.1 200 0.02 secs: 2406 bytes ==> GET / HTTP/1.1 200 0.03 secs: 2406 bytes ==> GET / HTTP/1.1 302 0.02 secs: 0 bytes ==> POST https://www.joedog.org/helper.php HTTP/1.1 302 0.01 secs: 0 bytes ==> POST https://www.joedog.org/helper.php HTTP/1.1 200 0.02 secs: 2436 bytes ==> GET /?e=3 HTTP/1.1 200 0.03 secs: 2436 bytes ==> GET /?e=3 HTTP/1.1 200 0.03 secs: 2457 bytes ==> GET /oracle/reset HTTP/1.1 200 0.02 secs: 2457 bytes ==> GET /oracle/reset HTTP/1.1 200 0.02 secs: 2458 bytes ==> GET /oracle/unlock HTTP/1.1 200 0.02 secs: 2458 bytes ==> GET /oracle/unlock

Transactions: 10 hits Availability: 100.00 % Elapsed time: 0.11 secs Data transferred: 0.02 MB Response time: 0.02 secs Transaction rate: 90.91 trans/sec Throughput: 0.17 MB/sec Concurrency: 2.00 Successful transactions: 10 Failed transactions: 0 Longest transaction: 0.03 Shortest transaction: 0.01

On Wed, Feb 19, 2020 at 4:09 PM neoacevedo notifications@github.com wrote:

Good, I set the -f directive to use an external URL file with some URLs, one of them with a post method.

Launching siege, it simply ignores this directive. Now, configuring the same URLs in its default file, neither works.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/170?email_source=notifications&email_token=ABJRHZT3EMOVDKMJKCUHQWTRDWNZDA5CNFSM4KYBYV22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOYV6XQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZVYVW5DY5SWROEB6ILRDWNZDANCNFSM4KYBYV2Q .