W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

servlet image retrieval problem

From: rob sanders <rsanders@draper.com>
Date: Sun, 20 Jun 1999 21:05:26 -0400 (EDT)
Message-ID: <376D8FBF.DA0BF58E@draper.com>
To: "www-jigsaw@w3.org" <www-jigsaw@w3.org>
I have a servlet that retrieves arbitrary URLs. It is part of my
infamous attempt to add a servlet to a proxy configured jigsaw server. I
never got the two to work together. So I added a second jigsaw server to
bypass this obstacle.

Now I have a new problem.

The problem concerns a servlet that creates a HttpURLConnection to a
remote image URL and reads in the incoming stream, then copies the
stream into the ServletResponse output stream.

Many URLs seem to work fine. But gif and jpg URLs appear to be garbled.
Is there any additional formating Jigsaw performs on the response stream
after the servlet closes?

-------------------------------

my architecture:

browser requests a URL from proxy
   |
   V
jigsaw "I" proxy-configured
  customized proxy-frame redirects to jigsaw "II" servlet 
   |
   V
jigsaw "II" servlet "A"-configured
  servlet "A" extracts desired URL to retrieve
  servlet "A" opens HttpURLConnection to jigsaw "III"
  servlet "A" forwards desired URL to jigsaw "III"
   |
   V
jigsaw "III" servlet "B"-configured
  servlet "B" extracts URL to retrieve
  servlet "B" opens HttpURLConnection to origin server
  servlet "B" extracts & wraps headers
  servlet "B" downloads the headers & contents of URL
  servlet "B" dumps content ->ServletResponse Outputstream.
   |
   V
jigsaw "II" servlet "A" 
  reads data from it's HttpURLConnection to "B"
  unwraps headers
  dumps content ->ServletResponse Outputstream
   |
   V
jigsaw "I" Proxy
  caches response
  forwards content to user's browser
   |
   V
browser

-----------------------------------

-rob
Received on Monday, 21 June 1999 03:29:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT