• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 871
  • Last Modified:

downloading specific content type using wget

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?

1 Solution
use  curl -I and grep for content-type
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now