Ask Your Question
0

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?

https://RMLSA-rets.paragonrels.com/re...

//cdnparap110.paragonrels.com/ParagonImages/Property/P11/RMLSA/1271207/0/0/0/971b381d72e4fa1d608ebfcd4133e0ba/4/f66d04ab6cc52e311192839478f384c0/1271207.JPG

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

Comments

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: //cdnparap40.paragonrels.com/ParagonImages/Property/P4/CCAR/1518573/18/0/0/50d7d51e7ea64a6f20dcd33f9e860622/2/42f8001e4d96cb939f376268c622c1ad/1518573-18.JPG 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
0

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

Hello!

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

Comments

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

Stats

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

Seen: 142 times

Last updated: Sep 17 '21