hmmm... so I went a level deeper, as you suggest, to
better diagnose the issue. It looks like when I do
try{
URL u1 = new URL("http://images.google.com/");
InputStream is1 = u1.openStream();
URL u2 = new
URL("http://images.google.com/images?q=blah");
InputStream is2 = u2.openStream();
} catch (IOException ioe){
ioe.printStackTrace();
}
is1 opens fine, but is2 throws a 403... very stange.
I guess it isn't a swing problem, after all, but a net
one.
rahul
--- "Prescott, Ralph" <[EMAIL PROTECTED]>
wrote:
> >> I'm wondering if maybe it has something to do
> with the
> >> headers it is sending. I tried turning off
> cookies in
> >> a regular browser, and the page still came up so
> I'm
> >> pretty sure it's not that.
>
> >> rahul
>
> hmm...
>
> If the problem is with the HTML content rather than
> the headers,
> You could try putting the HTML into a local text
> file and then
> experimenting with the HTML until it works.
>
> Not a solution but might give you some insight into
> one.
>
> You can get the HTML into a local file via:
> * your browser (view source)
> * CLI tools like WebCat
> (http://www.acme.com/java/software/WebCat.html)
> * Roll your own with java.net.URL
>
> Then point your JEditorPane at the local file.
>
> HTH
>
> ~rmp
> Ralph M. Prescott
> Technical Lead / Solutions Development
> Xelus, Inc.
>
> web: http://www.xelus.com
> email: [EMAIL PROTECTED]
> vmail: 585.419.3137
> im: rmprescott@yahoo
>
> -----Original Message-----
> From: Rahul Bhargava [mailto:rahulb@;yahoo.com]
> Sent: Wednesday, November 13, 2002 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Google Image Search via JEditorPane
> (HTTP 403) (Kevin Yank)
>
>
>
> Hmm... no, it's not a proxy issues. I'm on a Cable
> modem without any such configuration. I can get
> lots
> of other webpages fine with the JEditorPane,
> including
> www.google.com, but I can't get to
> http://images.google.com/images?q=blah
>
> very frustrating!
> I'm wondering if maybe it has something to do with
> the
> headers it is sending. I tried turning off cookies
> in
> a regular browser, and the page still came up so I'm
> pretty sure it's not that.
>
> rahul
>
=====
[EMAIL PROTECTED]
http://www.media.mit.edu/~rahulb/
http://www.instituteofthefuture.org/
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing