Skip to content

Instantly share code, notes, and snippets.

@xrd
Created November 16, 2016 18:28
Show Gist options
  • Save xrd/7786da7bda24bbb6338840fb9910e2c0 to your computer and use it in GitHub Desktop.
Save xrd/7786da7bda24bbb6338840fb9910e2c0 to your computer and use it in GitHub Desktop.
toybox on android
echo -e "GET http://yahoo.com HTTP/1.0\n\n" | toybox nc yahoo.com 80
HTTP/1.0 301 Redirect
Date: Wed, 16 Nov 2016 17:47:05 GMT
Via: https/1.1 ir20.fp.bf1.yahoo.com (ApacheTrafficServer)
Server: ATS
Location: https://www.yahoo.com/
Content-Type: text/html
Content-Language: en
Cache-Control: no-store, no-cache
Connection: keep-alive
Content-Length: 304
<HTML>
<HEAD>
<TITLE>Document Has Moved</TITLE>
</HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
<H1>Document Has Moved</H1>
<HR>
<FONT FACE="Helvetica,Arial"><B>
Description: The document you requested has moved to a new location. The new location is "https://www.yahoo.com/".
</B></FONT>
<HR>
</BODY>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment