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


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

Re: HTTP and Java

From Tom Anderson <twic@urchin.earth.li>
Newsgroups comp.lang.java.programmer
Subject Re: HTTP and Java
Date 2011-04-02 14:22 +0100
Organization Stack Usenet News Service
Message-ID <alpine.DEB.2.00.1104021419470.16545@urchin.earth.li> (permalink)
References <kogdp6l1id6c90b2fr1dlufr5k6ukj9ft3@4ax.com>

Show all headers | View raw


On Fri, 1 Apr 2011, 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?

For a single request, no.

A server might be able to tell the difference between a browser and Java 
by looking at previous interactions, eg if the browser had made some AJAX 
calls that the Java program did not because it was not running JavaScript.

IME, if i have a Java program and a browser behaving differently, it's 
because the request is different in some way i hadn't realised. Get 
Wireshark on the case immediately, and safe yourself some puzzlement.

tom

-- 
Freedom is the right of all sentient beings. -- Optimus Prime

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