Hi,
I have written a curl like SPDY client tool. This will support both version 2 & 3. Version 2 is thoroughly tested and is working fine. I am planning to add more features in this tool. Please feel free to use and provide your feedback. I have made it available at
https://github.com/ashish-gupta-/spdy-python
Available options are:-
python scurl.py -h
Usage:
usage: scurl.py [options] {
https://10.102.116.64/testsite/file1k.html,https://10.102.116.64/tesiste/file5.html}"
Default spdy version will be 2 and http version will be 1.1
Options:
-h, --help show this help message and exit
-H CUSTHDR, --header=CUSTHDR
Provide a custom header which will be sent along with
the request i.e. -H 'host:10.102.116.64'
-2 provide this option for using spdy version 2
-3 provide this option for using spdy version 2
-A U_AGENT, --user-agent=U_AGENT
(HTTP) Specify the User-Agent string to send to the
HTTP server
-F FORM_DATA, --form=FORM_DATA
(HTTP) This lets curl emulate a filled-in form in
which a user has pressed the submit button. This
causes curl to POST data using the Content-Type
multipart/form-data according to RFC 2388
-d URL_FORM_DATA, --data=URL_FORM_DATA
(HTTP) Sends the specified data in a POST request to
the HTTP server, in the same way that a browser does
when a user has filled in an HTML form and presses the
submit button. This will cause curl to pass the data
to the server using the content-type application/x
-www-form-urlencoded
-L, --location (HTTP/HTTPS) If the server reports that the requested
page has moved to a different location (indicated with
a Location: header and a 3XX response code), this
option will make scurl redo the request on the new
place
-T PUT_DATA, --upload-file=PUT_DATA
This transfers the specified local file to the remote
URL using PUT request
--http-version=HTTP_VER
(HTTP) Which HTTP version to use
-v, --verbose make lots of noise [default is no verbose]