Account Options

  1. Sign in
The new Google Groups is coming soon. Learn about the new features you'll find.
Google Groups Home for developers.sugarsync.com
« Groups Home
406 and accept header
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Seb  
View profile  
 More options Feb 6, 8:32 am
From: Seb <sebnmul...@gmail.com>
Date: Mon, 6 Feb 2012 05:32:42 -0800 (PST)
Local: Mon, Feb 6 2012 8:32 am
Subject: 406 and accept header
Hi!

I saw there was an earlier post on this topic but I was unable to
solve my problem despite having read it.
I am able to obtain fileData URLs but I can only retrieve certain file
types. Image files seem to work but .txt
and .pdf for example do not. Instead I get a 406 error.

The previous post mentioned that I need to set the appropriate Accept
header but I'm not sure
what the correct setting should be, especially when retrieval works
for some files and not others.

I checked the headers for both files I am unable and able to retrieve,
here are respective examples:

{null=[HTTP/1.1 406 Not Acceptable], Date=[Mon, 06 Feb 2012 13:28:44
GMT], Content-Length=[287], Content-Type=[text/html;
charset=ISO-8859-1], Accept-Ranges=[bytes], Server=[Noelios-Restlet-
Engine/1.1.5]}

{null=[HTTP/1.1 200 OK], Date=[Mon, 06 Feb 2012 13:31:04 GMT], Content-
Length=[630272], Content-Disposition=[attachment;
filename*=UTF-8''Opera-Background-Space-Harmonica.jpg], Content-
Type=[application/octet-stream; charset=UTF-8], Accept-Ranges=[bytes],
Server=[Noelios-Restlet-Engine/1.1.5]}

Regards,

Seb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Wong  
View profile  
 More options Feb 7, 4:29 am
From: Jim Wong <jw...@sugarsync.com>
Date: Tue, 7 Feb 2012 09:29:17 +0000
Local: Tues, Feb 7 2012 4:29 am
Subject: Re: 406 and accept header
What value are you providing in the Accept header?
--
Jim Wong (jw...@sugarsync.com)

On 2/6/12 5:32 AM, "Seb" <sebnmul...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seb  
View profile  
 More options Feb 7, 7:20 am
From: Seb <sebnmul...@gmail.com>
Date: Tue, 7 Feb 2012 04:20:44 -0800 (PST)
Local: Tues, Feb 7 2012 7:20 am
Subject: Re: 406 and accept header
I'm now using "*/*" simply to make sure it's working but I
occasionally get 500 error messages while looping through my files
although there's no problem when retrieving individual ones.

I'd rather set the accept header to something less reliant on
wildcards though, can I simply use the returned content-type as the
accept header on a file-per-file basis?

On Feb 7, 10:29 am, Jim Wong <jw...@sugarsync.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Wong  
View profile  
 More options Feb 7, 12:44 pm
From: Jim Wong <jw...@sugarsync.com>
Date: Tue, 7 Feb 2012 17:44:16 +0000
Local: Tues, Feb 7 2012 12:44 pm
Subject: Re: 406 and accept header
You should be able to omit the Accept header entirely.  You only need to
set it if you specifically want to request a transcoded version of an
image.

If you can send out the URLs you were accessing at the time you got 500
responses, we can investigate.

--
Jim Wong (jw...@sugarsync.com)

On 2/7/12 4:20 AM, "Seb" <sebnmul...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »