2 ms·
I hoped this would work: $ telnet cueup.com 80 GET /jobs HTTP/1.1 User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r z
by lloeki 14y ago
I hoped this would work:
$ telnet cueup.com 80
GET /jobs HTTP/1.1
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
Host: cueup.com
Accept: */*
<blank line>
but it redirects to Location: https://www.cueup.com/jobs https://www.cueup.com/jobs, so this is necessary:
$ openssl s_client -connect www.cueup.com:443
GET /jobs HTTP/1.1
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
Host: www.cueup.com
Accept: */*
<blank line>
And there you go (^D to stop).
Unfortunately things get munged up since it's using Transfer-Encoding: chunked, so there's the chunk size and blank line in between each content line.
Bonus points for cueup.com if they update the thing to not chunk it if User-Agent: telnet (I did test this and it doesn't work)