pronk
pronk copied to clipboard
What am I doing wrong?
curl http://localhost:8000/greeting/david
returns
<!DOCTYPE HTML>
<html><head><title>Hello</title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"></head><body>Hello, david!
</body></html>
pronk --num-requests=100 http://localhost:8000/greeting/david
tested in 2.374 msec (74.8% CPU) Error: connect: does not exist (Connection refused)
The following works, however.
pronk --num-requests=100 http://yahoo.com
It seems the issue is with using "localhost." If I change that to a host in my host file, everything works. Anyone else experience this issue?
David