?
Solved

downloading specific content type using wget

Posted on 2009-04-20
1
Medium Priority
?
869 Views
Last Modified: 2013-12-20
How can I download files of specific content-type using wget? I don't want to use -A as it just checks for filename extension and not actual file content type. Also, wget will be called from perl program.
My idea was to get header/content-type and then search for content-type information and then download.

Any suggestions?

-
GT.
0
Comment
Question by:gt9
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 900 total points
ID: 24198935
use  curl -I and grep for content-type
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month17 days, 7 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question