-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Siege is support form-data? #139
Comments
That appears to be a bug. In most cases, the command line switch would set
the type but the file loader isn't playing by the rules.
If it's an easy fix, I'll get something in github soon.
…On Thu, Aug 16, 2018 at 7:52 AM, AntSworD ***@***.***> wrote:
Can I post form-data ?
siege -c 1 -r 1 -T "multipart/form-data;boundary=123456" -g '
http://127.0.0.1:3000/results POST < data.txt'
The data.txt is form-data content, such as:
------123456
Content-Disposition: form-data; name="result"
result-data
------123456--
Final I got:
POST /results HTTP/1.0
Host: 127.0.0.1:3000
Accept: */*
Accept-Encoding: gzip;deflate
User-Agent: Mozilla/5.0 (apple-x86_64-darwin17.0.0) Siege/4.0.4
Connection: close
Content-type: text/plain
Content-length: 90
------123456
Content-Disposition: form-data; name="result"
result-data
------123456--
The -T didn't work
The content-type overwrite by the file type detect, and didn't specify a
file type for form-data
https://github.com/JoeDog/siege/blob/master/src/load.c#L46
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#139>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFMT5nO3DboFG0epxIx4zGrgY3wkHMrNks5uRVz8gaJpZM4V_tdh>
.
|
This looks better:
$ siege -g -T "multipart/form-data;boundary=123456" -g '
http://www.joedog.org/testy.php POST < data.txt' <
POST /testy.php HTTP/1.0
Host: www.joedog.org
Accept: */*
Accept-Encoding: *
User-Agent: Mozilla/5.0 (pc-x86_64-linux-gnu) Siege/4.0.5rc2
Connection: close
Content-type: multipart/form-data;boundary=123456
Content-length: 86
…------123456
Content-Disposition: form-data; name="result"
result-data
------123456--
HTTP/1.1 200 OK
Date: Thu, 16 Aug 2018 12:47:14 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
On Thu, Aug 16, 2018 at 7:52 AM, AntSworD ***@***.***> wrote:
Can I post form-data ?
siege -c 1 -r 1 -T "multipart/form-data;boundary=123456" -g '
http://127.0.0.1:3000/results POST < data.txt'
The data.txt is form-data content, such as:
------123456
Content-Disposition: form-data; name="result"
result-data
------123456--
Final I got:
POST /results HTTP/1.0
Host: 127.0.0.1:3000
Accept: */*
Accept-Encoding: gzip;deflate
User-Agent: Mozilla/5.0 (apple-x86_64-darwin17.0.0) Siege/4.0.4
Connection: close
Content-type: text/plain
Content-length: 90
------123456
Content-Disposition: form-data; name="result"
result-data
------123456--
The -T didn't work
The content-type overwrite by the file type detect, and didn't specify a
file type for form-data
https://github.com/JoeDog/siege/blob/master/src/load.c#L46
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#139>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFMT5nO3DboFG0epxIx4zGrgY3wkHMrNks5uRVz8gaJpZM4V_tdh>
.
|
That fix is in github. Just check out the latest.
…On Thu, Aug 16, 2018 at 8:50 AM, Jeff Fulmer ***@***.***> wrote:
This looks better:
$ siege -g -T "multipart/form-data;boundary=123456" -g '
http://www.joedog.org/testy.php POST < data.txt' <
POST /testy.php HTTP/1.0
Host: www.joedog.org
Accept: */*
Accept-Encoding: *
User-Agent: Mozilla/5.0 (pc-x86_64-linux-gnu) Siege/4.0.5rc2
Connection: close
Content-type: multipart/form-data;boundary=123456
Content-length: 86
------123456
Content-Disposition: form-data; name="result"
result-data
------123456--
HTTP/1.1 200 OK
Date: Thu, 16 Aug 2018 12:47:14 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
On Thu, Aug 16, 2018 at 7:52 AM, AntSworD ***@***.***>
wrote:
> Can I post form-data ?
>
> siege -c 1 -r 1 -T "multipart/form-data;boundary=123456" -g '
> http://127.0.0.1:3000/results POST < data.txt'
>
> The data.txt is form-data content, such as:
>
> ------123456
> Content-Disposition: form-data; name="result"
>
> result-data
> ------123456--
>
>
> Final I got:
>
> POST /results HTTP/1.0
> Host: 127.0.0.1:3000
> Accept: */*
> Accept-Encoding: gzip;deflate
> User-Agent: Mozilla/5.0 (apple-x86_64-darwin17.0.0) Siege/4.0.4
> Connection: close
> Content-type: text/plain
> Content-length: 90
>
> ------123456
> Content-Disposition: form-data; name="result"
>
> result-data
> ------123456--
>
> The -T didn't work
>
> The content-type overwrite by the file type detect, and didn't specify a
> file type for form-data
> https://github.com/JoeDog/siege/blob/master/src/load.c#L46
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#139>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AFMT5nO3DboFG0epxIx4zGrgY3wkHMrNks5uRVz8gaJpZM4V_tdh>
> .
>
|
@JoeDog It is work! Thank you very much |
ghost
mentioned this issue
Oct 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can I post form-data ?
siege -c 1 -r 1 -T "multipart/form-data;boundary=123456" -g 'http://127.0.0.1:3000/results POST < data.txt'
The data.txt is form-data content, such as:
Final I got:
The
-T
didn't workThe content-type overwrite by the file type detect, and didn't specify a file type for form-data
https://github.com/JoeDog/siege/blob/master/src/load.c#L46
The text was updated successfully, but these errors were encountered: