[xep-support] Displaying images from sites with https redirects

Steve Anderson steveo at member.fsf.org
Thu Sep 7 11:56:15 PDT 2006


Can you include the correct port in the offending URLs
(http://ashhra.enetrix.com:443/ ... or
https://ashhra.enetrix.com:443/...) in the source?

     Steve

On 9/7/06, Bob Cirilli <bob.cirilli at enetrix.com> wrote:
>
>
>
>
> Hello,
>
>
>
> I apologize in advance if this gets too long winded, but hopefully more
> information will be useful here.
>
>
>
> This is our problem:  Some of the websites that we are using renderX have
> redirects that take the user from regular http (port 80) to http with SSL
> (port 443). This works fine with web browsers, because they know when
> requesting something (a page, an image, etc…) that they should follow the
> redirect, and if a problem comes up, they ask the user.  The problem comes
> in when we link to an image and attempt to display it with XEP.  We receive
> an http response status of 302, indicating that the agent was waiting for
> user input (which obviously never comes, and the image never displays).  Is
> there anyway that we can bypass this behavior so that the redirect will work
> correctly and our image will display?
>
>
>
> I have included an example as well as a description of http response status
> 302 below.
>
> I'm kind of stumped on this one.  Any help you can offer would be greatly
> appreciated.
>
>
>
> Thank you,
>
>
>
> Bob Cirilli
>
> eNetrix
>
> bob.cirilli at enetrix.com
>
>
>
>
>
>
>
>
>
>
>
>
>
> Here is an example with an image on the problem domain:
>
>
>
> http://ashhra.enetrix.com/pls/flexd/object_utils.display_object?id=2944064
>
>
>
> Try opening it in a web browser, and you should be presented with a dialogue
> that says something like "This page contains both secure and non-secure
> items.  Do you want to display the non-secure items?"
>
>
>
> However, when we add this same image into an external-graphic element in FO,
> we get an error:
>
>
>
> <fo:external-graphic scaling="uniform"
> src="url(http://ashhra.enetrix.com/pls/flexd/object_utils.display_object?id=2944064)"/>
>
>
>
> The error is:   [warning] Could not retrieve image from
> 'http://ashhra.enetrix.com/pls/flexd/object_utils.display_object?id=294406':
> java.io.IOException: HTTP response status is 302.
>
>
>
>
>
> Looking up HTTP Response status 302 on W3C shows:
>
>
> 302 Found
>
> The requested resource resides temporarily under a different URI. Since the
> redirection might be altered on occasion, the client SHOULD continue to use
> the Request-URI for future requests. This response is only cacheable if
> indicated by a Cache-Control or Expires header field.
>
> The temporary URI SHOULD be given by the Location field in the response.
> Unless the request method was HEAD, the entity of the response SHOULD
> contain a short hypertext note with a hyperlink to the new URI(s).
>
> If the 302 status code is received in response to a request other than GET
> or HEAD, the user agent MUST NOT automatically redirect the request unless
> it can be confirmed by the user, since this might change the conditions
> under which the request was issued.
>
>
>
>
>
>
>
>


-- 

steveo at member.fsf.org
What you say does matter, and so does how you say it.

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list