Comments (1)
I am not sure how are you using netcat. Run slowhttptest with -v 4 to see requests that are going out. Note that slowHTTPTest is first firing a probe connection which is repeated every 5 seconds or whatever is specified in -p
argument.
For example, with a netcat script I am running: slowHTTPTest with default options: src/slowhttptest -H -v 4 -u http://127.0.0.1:5432 -c 1
sends the following, with a default delay between each header be 10 seconds.
GET / HTTP/1.1
Host: 127.0.0.1:5432
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14
Referer: https://github.com/shekyan/slowhttptest/
X-V2YBaUHjo3JlKb: TumnSvur1uzhYYi56b0rdVlsWSM
X-aOzKuvl: jEkKH9Jhd
X-ABD6HiQBD9dDTUzsDdYhCrnoYDX3B: c1Ywy5X1s51l1mXzEH8
X-MfNz2t8FSg0HylbaKQfMKo5RgFmtMd: OmT9SM6cRiHTI2iQcMxuanZdCdI
X-oMVag5a: ab2J
X-JqcJpgKV2C6MF4kRbp9c96l7AULVg: MRKoedgxPbrKjlI1gwU8k2qp4
X-i9hVpHmcJQXePI9eWaJetA15e: YYM8DAR6O9tK4doxMaPXPzlGSvJZtl
X-OnwF: awT8BpYwW0xvac
X-78RlKPJG2EcLMTcNSvzuUvhl: LjM38aoi0AtGrMBtez
X-WcuQvQGpjzPmYMUKIUxb02KaUoN: Xe8B
looks pretty random to me.
As about slowPOST, it sends as much data as you want. With default settings, it sends a chunk of data separated by &
into the POST body every 10 seconds:
POST / HTTP/1.1
Host: 127.0.0.1:5432
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like GeckoAppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
Referer: https://github.com/shekyan/slowhttptest/
Content-Length: 4096
Content-Type: application/x-www-form-urlencoded
Accept: text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Connection: close
foo=bar&Ebidd1Dst9kKifO5DCleUxu4Y=35D5Dsdu8WGj&QRHnvpWSnjfaiFawuN3OcBAHLdx=YZXk4DF043KeJLAszibXx6g&gjTbO8j105ixCCLAQ1VZ120J=kEPRVWiJ6K0Qs3OweYP30sZ2E0&O=8GD5ydzFtxoH86EUUAfaPL
You can run netcat in this or similar way to accept more than one connetction:
nc -kl 127.0.0.1 5432 -c 'echo -e "HTTP/1.1 200 OK\r\n$(date)\r\n\r\n";echo "<p>ssap?</p>"'
from slowhttptest.
Related Issues (20)
- Wannna Static compilation HOT 1
- Fails SSL/TLS connection against load balancer requiring SNI HOT 2
- Quite / Silent Mode
- why we get the soft version v1.8.1 after compile the v1.8.2 source ?
- ./configure
- Offer HTTP/2
- custom http headers - user-agent HOT 1
- Add Support for multiple Ports
- Inquiry for features
- It is suggested to add that if the link fails, it should be continued instead of exiting the program HOT 1
- URL still accessible
- IPv6 issue
- Update Dockerfile alpine linux to supported version HOT 1
- 503 responses being treated as Service OK HOT 1
- How to have a longer duration of test? HOT 1
- make and make install not working
- Is there a way to provide Authentication token inside header.
- Cancelled if I try to set more than 10K requests.
- Add support for chunked POST
- Large cookies cause buffer overflow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slowhttptest.