httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] How to distinguish the first web page?
Date Wed, 26 Aug 2009 08:08:18 GMT
On Tue, Aug 25, 2009 at 11:54 PM, Brian Kim<09su.research@gmail.com> wrote:
> Hi.
>
> Currently I am using mod_proxy_http module for http apache.
> I would like to know how to get the very first page(text/html type)
> among a series of returned pages.
>
> For example, the following is a html of a site, www.foo.com. It has
> two iframe in itself.
>
> <html>
> <iframe src="www.foo1.com".... >
> ............
> <iframe src="www.foo2.com".... >
>
> </html>
>
> We get a html of www.foo.com, a html of www.foo1.com ,and then a html
> of www.foo2.com in this order.
> All of these pages have text/html type that I want to get.
> My proxy wants to modify the very first web page only which is a html
> of www.foo.com in the above example.
> Is there any way to distinguish the main page and the other webpages
> that is requested by the main page?

You can look at the "referrer" field. This contains the URL of the
page the currently requested URL was found on.

Krist


-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message