Jamez-s 7648634d3f curl | 6 年之前 | |
---|---|---|
Comments.md | 6 年之前 | |
README.md | 6 年之前 | |
a350.jpg | 6 年之前 | |
debugdump.txt | 6 年之前 | |
example.com.html | 6 年之前 | |
results.txt | 6 年之前 |
Step through each section.
When you see below a question:
Add your answer to Comments.md file. Run the commands, each one and determine the answer to add.
curl
to fetch some URLscurl --trace-ascii debugdump.txt http://www.example.com/
curl --trace-ascii debugdump.txt http://www.example.com/ >> results.txt
curl https://curl.haxx.se
curl https://curl.haxx.se >> results.txt
curl
commands?curl -o example.com.html http://www.example.com/
more example.com.html
open example.com.html
curl -o a350.jpg https://static01.nyt.com/images/2018/05/30/business/30SINGAPORE/merlin_138828375_8d2c8b23-ea8a-43d3-89d1-5556b11ccf5b-jumbo.jpg?quality=90&auto=webp
open a350.jpg
Add to Comments.md the answer to this question:
curl -I http://google.com curl -I http://google.com >> results.txt curl -I http://zipcodewilmington.com
curl -I -L http://zipcodewilmington.com curl -I -L http://zipcodewilmington.com >> results.txt
(This was how a REDIRECT works, first you see a 301 and then get redirected to the actual site.)
and now do:
Save your answers in Comments.md and:
wc results.txt
wc results.txt >> results.txt
now: do a git add, commit and push. Then do a Pull Request. Thx.