JoeDog / siege

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

Siege fails on script paths containing a / in the query string #199

Open RichardNeill opened 2 years ago

RichardNeill commented 2 years ago

If an url has a "/" in the query string, e.g. b/c as in localhost/index.php?a=b/c then siege is fine with it.

But if the index.php contains another resource, such as

where there is a "/" in the parameter, then siege fails with: Address resolution failed at sock.c:158 with the following error:: Invalid argument

Adding a printf() to sock.c at line 160 indicates that hn == "refract.php?js=lib"

I hope that's helpful.