Giter Club home page Giter Club logo

curl-exercises's Introduction

Problem Sheet - Curl

Exercises from curl problem sheets - Data Representation & Querying

The following exercises are related to the use of the command line tool curl [1].

    1. Create a git repository for your answers to this problem sheet. Push the repository to GitHub. Make a commit and push it to GitHub after each exercise.
    1. Use curl to download the HTML page located at http://www.jmarshall.com/easy/ http/, and save its contents to a file named http-easy.html. Open the URL in a browser, and compare the source of the page to the file you created using curl.
    1. Use curl to download the contents of the HTML page located at http://www.duckduckgo. com, saving the contents to a file named duckduckgo.html. Open the URL in a browser, and compare the source of the page to the file you created using curl. Investigate the HTTP transaction using curl’s verbose mode. Try to redirect the output from curl to a file called duckduckgo.txt.
    1. In your browser, search for the term GMIT using DuckDuckGo. Note the URL in the browser’s location bar. Adapt the URL and use it, with curl, to save the response from DuckDuckGo when searching for science to science.txt. Do the same for the term computer science, saving the response to computer-science.txt.
    1. Use curl to save the response from http://duckduckgo.com/?q=gmit&format=json to the file gmit.json. Open the file and re-format it by adding white space to make it easier to read.
    1. Create a folder called www. Save the blank template from the Basic Template section of http://getbootstrap.com/getting-started/, saving it as index.html in www. Run a Python SimpleHTTPServer in www, and access the webpage in your browser. Open another terminal windows and use curl to access it. Fix the broken JavaScript and CSS links in the file, pointing to a CDN. Dow

curl-exercises's People

Contributors

damiannolan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.