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 6993661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:47:34+00:00 2026-05-27T19:47:34+00:00

I want to get content-length from a URL that it sends me this header:

  • 0

I want to get content-length from a URL that it sends me this header:

HTTP/1.1 301 Moved Permanently Date: Sun, 01 Jan 2012 09:34:44 GMT Server: Apache Location: https://www.sugarsync.com, http://www.sugarsync.com/pf/D6304231_0192919_76577 Keep-Alive: timeout=300, max=9793 Connection: Keep-Alive Content-Type: text/plain; charset=UTF-8

The problem is that the original URL is the same new URL that in this header is sent! In other words: I get the headers from URL: https://www.sugarsync.com/pf/D6304231_0192919_76577 and in headers that I get, it redirects to the same page.

  • 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-05-27T19:47:35+00:00Added an answer on May 27, 2026 at 7:47 pm

    I don’t seem to have that problem with the URL you provided:

    C:\Users\rleahy>openssl s_client -quiet -connect sugarsync.com:443
    Loading 'screen' into random state - done
    depth=1 /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates
    .godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=
    07969287
    verify error:num=20:unable to get local issuer certificate
    verify return:0
    HEAD /pf/D6304231_0192919_76577 HTTP/1.1
    host:www.sugarsync.com
    
    HTTP/1.1 200 OK
    Date: Sun, 01 Jan 2012 10:16:13 GMT
    Server: Apache
    Set-Cookie: JSESSIONID=22C35505626E63560F5F00BDE86BD458; Path=/; Secure
    Content-Disposition: attachment;filename="Algorithms(01).rar"
    Accept-Ranges: bytes
    Etag: file_1319015834000
    Last-Modified: Wed, 19 Oct 2011 09:17:14 GMT
    Content-Length: 468987
    Content-Type: application/x-download
    Set-Cookie: NSC_wt_xxx.tvhbstzod.dpn_443=ffffffff090d78d545525d5f4f58455e445a4a4
    2378b;path=/;secure;httponly
    

    Are you sure you’re not connecting with HTTP rather than HTTPS? Connecting with HTTP does indeed give a 301 (asking you — in effect — to connect using HTTPS).

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

Sidebar

Related Questions

I want to get a MIME Content-Type from a given extension (preferably without accessing
What i basically want to do is to get content from a website and
I am using get_headers() and I want to return the content length. In the
I want to get the content which are displayed by a particular page in
I want to get a statistic of how many users submitted content each month
My UIWebView loads a contenteditable html content. I want to let the UIWebView get
I want to get the contents from a row in the database and compare
I'm using BitmapFactory.decodeStream to load an image from a url in Android. I want
I am trying to retrieve the values from the following url: http://rentopoly.com/ajax.php?query=Bo . I
First,I uploaded a file in a external server and got a url from that

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.