HTTP-EQUIV

R

Roedy Green

Microsoft sometimes responds to my probes like this . What does it
mean? I am familiar with Refresh with an URL. Is it just asking you
to try again later?

<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1">
<META HTTP-EQUIV="Pragma" CONTENT="no cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD></HTML>

Isn't Java supposed to follow such redirects on its own?
 
T

Tom Anderson

Microsoft sometimes responds to my probes like this . What does it mean?
I am familiar with Refresh with an URL. Is it just asking you to try
again later?

<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1">

It's telling you to reload the same page 0.1 seconds later.
<META HTTP-EQUIV="Pragma" CONTENT="no cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

And not to cache it.

That's quite bizarre behaviour.
Isn't Java supposed to follow such redirects on its own?

This is happening at the HTML level, not the HTTP level. An HTTP client
(like URLConnection) can handle redirects and refreshes at the HTTP level,
but if it's not parsing the HTML (which it's not), it won't be able to
handle those.

Meta HTTP-equiv tags are generally a sign of poor site design - if one has
some HTTP-level metadata, one should be saying it in HTTP, not HTML.

tom
 
J

Joshua Cranmer

Roedy said:
Microsoft sometimes responds to my probes like this . What does it
mean? I am familiar with Refresh with an URL. Is it just asking you
to try again later?

<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1">

From the HTML 5 definition of 'Refresh' (it's not a standard HTTP header):
<http://www.whatwg.org/specs/web-apps/current-work/#refresh>
[If only a number is present], the integer represents a number of
seconds before the page is to be reloaded; [if a URL is present] the
integer represents a number of seconds before the page is to be replaced
by the page at the given URL.
<META HTTP-EQUIV="Pragma" CONTENT="no cache">

§14.32 of RFC 2616 says that a value of "no-cache" (should have a hyphen
there) means that it should request from the server again
<META HTTP-EQUIV="Expires" CONTENT="-1">

§14.21, ibid., except this is also malformed (it's not a valid date
parameter).

What the page is probably trying to say is "Busy, please try again
[automatically] in 100ms."
Isn't Java supposed to follow such redirects on its own?

If they were sent as actual HTTP response headers, maybe (doubtful,
though), but these are specified in HTML. And HTTP is content-agnostic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top