InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Curl

  • Curl handy commands
  • Curl - follow redirects
  • Curl - hide progress bar
  • Curl with download/upload rate limit
 
  • Home
  • > Tutorials
  • > Linux/Unix Command Line
  • > Curl

Curl – follow redirects

By admin on Dec 7, 2015

Curl is fairly handy command line utility to fetch a web page. It can also be used to automate various tasks in bash shell scripts. By default curl does not follow redirect. Here is how you can use curl to follow redirect.

$ curl -L URL

Curl – follow redirect in silent mode

Curl is used often in silent mode to get code from a web page and then execute it. Here is how you can use -L flag with curl in silent mode to install IE virtual images on VirtualBox.

$ curl -L -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash

Suggested posts:

  1. How to Preload cache in wordpress on Linux
  2. Bash – how to stop at error
  3. Alexa rank – how reliable is it?
  4. How to hide a post from home and RSS feed in wordpress
  5. How to get docker container IP
  6. Centos – save and restore iptables
  7. Linux – find top directories by used disk size (excluding size of subdirectories)
  8. Mac – how to change desktop icons size
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Curl, Devops, Linux, Linux/Unix Command Line, Mac, Tutorials, Ubuntu Linux
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress