Ask Your Question

Recent changes in GetObject

asked 2021-09-17 10:26:37 -0500

Hi, we're encountering this with multiple Paragon feeds, when we use Location=1, we are receiving image URL without http protocol in the response. This is an example. Can you add the http protocol in the response?


Another question, if not using the location parameter in the GetObject request, would it be treated as Location=0? Or what's the default it would return? Thanks!

edit retag flag offensive close merge delete


I am seeing the same behavior. The // at the beginning acts as if it's expecting a file.

I also noticed that the content-type is being provided as text/xml instead of jpeg.

Here was an example photo that we pulled with location=1.

Content-Transfer-Encoding: 8bit Content-ID: 1518573 Object-ID: 19 Location: // Content-Type: text/xml Content-Length: 52

list555 gravatar imagelist555 ( 2021-09-17 12:18:23 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-09-17 14:44:03 -0500


We utilize a relative protocol so that our links are relative to the context they are being digested in. Since mixing http:// and https:// can cause errors - using relative protocol makes them a little more flexible.

The same will be true if you have access and pull the same listing id for the Media resource type.

As far as passing no location - it will be treated as a 0 - so the binary data for the object will be obtained.

edit flag offensive delete link more


Thank you for the reply. Do you have any information on the Content-Type being provided as text/xml instead of showing JPEG. Other vendors that provide photos via location=1 provide the content-type as JPEG. We have a filter in place that specifically looks for this value so we do not pull in unnecessary information.

list555 gravatar imagelist555 ( 2021-09-21 08:23:09 -0500 )edit

The “Content-Type” header is the type for the data returned as the Content of the response.
Location=0 - The image is returned as the Content so it is set to the Content-Type for the image.
It could also be “text/xml” if an error was returned if, for example, the image isn’t available.
Location=1 - Success or Error text is retuned as Content so it would be Content-Type: text/xml
URL header is returned with the image URL, but it isn’t in the Content.
You can get the mime type from the URL’s file extension.

bwolven gravatar imagebwolven ( 2021-09-21 12:30:19 -0500 )edit

Also, if I’m not mistaken, when the URL returned by GETOBJECT is requested it returns the “Content-Type” header in its response.
This would also apply to document URLs.

bwolven gravatar imagebwolven ( 2021-09-21 12:32:24 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-09-17 10:26:37 -0500

Seen: 142 times

Last updated: Sep 17 '21