Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #2772

Re: HTTP and Java

From Joshua Cranmer <Pidgeot18@verizon.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: HTTP and Java
Date 2011-04-02 16:27 -0400
Organization A noiseless patient Spider
Message-ID <in80r9$dbh$2@dont-email.me> (permalink)
References <kogdp6l1id6c90b2fr1dlufr5k6ukj9ft3@4ax.com>

Show all headers | View raw


On 04/02/2011 02:35 AM, Roedy Green wrote:
> If Java sent an identical HTTP header, to that sent by a browser,
> including User-Agent to a website, is there a plausible mechanism by
> which a website would treat the requests differently, namely reject
> Java and accept the browser request?

A plausible technique is the use of separating out the real content into 
things which require further loading--like requiring client-side 
scripting, cookies, use of CSS, iframes, images, embedded plugins (e.g., 
Flash or Silverlight), client-side redirects. You can then ensure that 
these things are also downloaded before accepting other page requests.

An additional factor could be if browsers actually use HTTP different 
from Java... e.g., if one pipelines and the other doesn't, or perhaps 
automatic SSL upgrading, etc. It all comes down to how many false 
negatives the server is willing to bear.

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

HTTP and Java Roedy Green <see_website@mindprod.com.invalid> - 2011-04-01 23:35 -0700
  Re: HTTP and Java Luuk <Luuk@invalid.lan> - 2011-04-02 10:55 +0200
  Re: HTTP and Java Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-02 21:58 +1300
  Re: HTTP and Java Tom Anderson <twic@urchin.earth.li> - 2011-04-02 14:22 +0100
  Re: HTTP and Java Patricia Shanahan <pats@acm.org> - 2011-04-02 06:26 -0700
    Re: HTTP and Java Roedy Green <see_website@mindprod.com.invalid> - 2011-04-02 23:17 -0700
      Re: HTTP and Java Luuk <Luuk@invalid.lan> - 2011-04-03 12:58 +0200
        Re: HTTP and Java Roedy Green <see_website@mindprod.com.invalid> - 2011-04-03 16:47 -0700
  Re: HTTP and Java Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-04-02 16:27 -0400
  Re: HTTP and Java Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-04-03 09:50 -0300
    Re: HTTP and Java Roedy Green <see_website@mindprod.com.invalid> - 2011-04-03 16:51 -0700
      Re: HTTP and Java Tom Anderson <twic@urchin.earth.li> - 2011-04-04 23:25 +0100
      Re: HTTP and Java Ian Shef <invalid@avoiding.spam> - 2011-04-04 23:06 +0000
        Re: HTTP and Java Roedy Green <see_website@mindprod.com.invalid> - 2011-04-04 22:17 -0700
        Re: HTTP and Java Roedy Green <see_website@mindprod.com.invalid> - 2011-04-04 22:18 -0700

csiph-web