Re: infinite loop with http requests
- From: "Daniel Pitts" <googlegroupie@xxxxxxxxxxxxx>
- Date: 20 Nov 2006 12:29:29 -0800
Chris Uppal wrote:
Daniel Pitts wrote:
Oliver Wong wrote:[...]
I recommend against using google as your test server. Google does
some funky stuff when it detects that Java is connecting to it, which
may give you unexpected results.
Good suggestion except for two things, He isn't using Java's URL API,
which is what's responsible for setting the User-Agent string. Second,
you can override the User-Agent string, and google couldn't possible
know the difference.
I agree with Oliver's advice. Google is perfectly at liberty to treat requests
differently depending on how they /appear/ to have been submitted.
If I were them I would group requests into at least three categories: ones that
appear to be legit (as far as we can tell from the various meta-info in a
request); those that appear to come from frequently abused clients (such as the
Java stuff); and those where we can't tell much. I would be less aggressive
about -- say -- shutting off an over-eager client IP address if the requests
appeared to be from a normal browser than if they appeared to come from
uncontrolled code. And I'd put the "can't tell" ones somewhere in the middle.
But the bottom line is not that Google /can/ treat requests differently
depending on apparently immaterial meta stuff, but that it /does/ do so --
which makes it a very poor example domain for a beginner (to HTTP) to test
against.
-- chris
Okay, while my point was that you can "trick" google into thinking that
it is probably a legit client, your point is well taken.
I suppose a good way to learn HTTP is to set up a webserver in your own
development environment (such as apache, resin, etc...), and use it
instead of a third party website. That way you also have control over
the content being produced.
- Daniel.
.
- References:
- infinite loop with http requests
- From: yawnmoth
- Re: infinite loop with http requests
- From: Oliver Wong
- Re: infinite loop with http requests
- From: Daniel Pitts
- Re: infinite loop with http requests
- From: Chris Uppal
- infinite loop with http requests
- Prev by Date: Re: how to "translate" dynamic array in FORTRAN 90 to Java code?
- Next by Date: Re: Spring WebFlow performance
- Previous by thread: Re: infinite loop with http requests
- Next by thread: SendFailedException, invalid addresses, and lifetime of Transport data
- Index(es):
Relevant Pages
|