Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8968981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:31:48+00:00 2026-06-15T17:31:48+00:00

I have a CDN with files, and I want to create a small tool

  • 0

I have a CDN with files, and I want to create a small tool that checks for the file existence there, based on a pre-defined files list.

I tried to use WebRequest, but it seems like it to download the file. I just want to get the content length without downloading it. (similar to curl -I )

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:31:49+00:00Added an answer on June 15, 2026 at 5:31 pm

    You might be able to make a HEAD request to get that information.

    Quote from w3.org:

    The HEAD method is identical to GET except that the server MUST NOT
    return a message-body in the response. The metainformation contained
    in the HTTP headers in response to a HEAD request SHOULD be identical
    to the information sent in response to a GET request. This method can
    be used for obtaining metainformation about the entity implied by the
    request without transferring the entity-body itself. This method is
    often used for testing hypertext links for validity, accessibility,
    and recent modification.

    The response to a HEAD request MAY be cacheable in the sense that the
    information contained in the response MAY be used to update a
    previously cached entity from that resource. If the new field values
    indicate that the cached entity differs from the current entity (as
    would be indicated by a change in Content-Length, Content-MD5, ETag or
    Last-Modified), then the cache MUST treat the cache entry as stale.

    From what I’ve read elsewhere, the content-length should be present in a HEAD response. But “should” doesn’t necessarily mean it always is (see: Content-Length header with HEAD requests?)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CDN that is storing media files. Each file I want to
Lets assume I have a file on a CDN (Cloud Files from Rackspace) and
I have a preloader that is being served from a CDN, and I want
I have a list of SWF files that I want to download to my
I have a series of Rackspace Cloud Files CDN URLs stored which reference an
I have two CDN domains, one that delivers content over https and the other
I have a background image that I want to repeat across (repeat-x) however when
I have a Rails app that uses Cloudfront as its CDN and sprockets to
I have recently realised that all of my media files that have special chars
I have a webpage using CDN to stream CSS files. The situation I ran

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.