Open jasons42 opened 1 year ago
I believe this might be the cause: https://github.com/JoeDog/siege/blob/68a7101e15a3667e4182ea00d2132c3ef252dc3d/src/http.c#L154
if (my.protocol == FALSE || my.get == TRUE || my.print == TRUE) {
snprintf(protocol, sizeof(protocol), "HTTP/1.0");
} else {
snprintf(protocol, sizeof(protocol), "HTTP/1.1");
}
For me this looks like ignoring protocol
setting, if we're in -g
or -p
mode it enforces HTTP/1.0
Here is my config which has
gmethod = HEAD
andprotocol = HTTP/1.1
set:Despite this when I send a request using
-g
I see that a HEAD request is sent, but using HTTP/1.0 instead of HTTP/1.1:This is an issue for me as we have proxies/loadbalancers configured to reject HTTP/1.0 requests and return
426 Upgrade Required
.