By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,180 Members | 1,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,180 IT Pros & Developers. It's quick & easy.

rerouting a web page to a file

P: n/a
Does anyone know of a method to reroute a web page to a file.
When someone comes to a web page, I would to reroute the output from a
web page to a file on our site.

The web page we are rerouting does not exist on our site and in some
instances is not a text web page but the output of a perl or some
other script.

Thanks,
Brad
Jun 8 '07 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Brad wrote:
Does anyone know of a method to reroute a web page to a file.
When someone comes to a web page, I would to reroute the output from a
web page to a file on our site.
File -Save As

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jun 8 '07 #2

P: n/a
On 8 Jun, 20:09, Jim Moe <jmm-list.AXSPA...@sohnen-moe.comwrote:
Brad wrote:
Does anyone know of a method to reroute a web page to a file.
When someone comes to a web page, I would to reroute the output from a
web page to a file on our site.

File -Save As
To get all the output you could set 'Save as type' to 'Save Page,
complete.

Jun 8 '07 #3

P: n/a
I knew I didn't explain it well enough as soon as I hit the send
key...
I am speaking as a web developer. I would like to include output from
another web site in a window of my web page without using frames.
To do this, I wanted to read the info from that page and then rewrite
it in my page so it looks like it is showing up in a window on my web
site.

I want this to be done dynamically so if that page changes, I will
include the changes.

Any ideas?

On Fri, 08 Jun 2007 18:34:13 -0000, "Roy A." <ro*********@gmail.com>
wrote:
>On 8 Jun, 20:09, Jim Moe <jmm-list.AXSPA...@sohnen-moe.comwrote:
>Brad wrote:
Does anyone know of a method to reroute a web page to a file.
When someone comes to a web page, I would to reroute the output from a
web page to a file on our site.

File -Save As

To get all the output you could set 'Save as type' to 'Save Page,
complete.
Jun 8 '07 #4

P: n/a
Brad wrote:
I knew I didn't explain it well enough as soon as I hit the send
key...
I am speaking as a web developer. I would like to include output from
another web site in a window of my web page without using frames.
To do this, I wanted to read the info from that page and then rewrite
it in my page so it looks like it is showing up in a window on my web
site.

I want this to be done dynamically so if that page changes, I will
include the changes.

Any ideas?
This would require some form of server side scripting, and possibly an
apache redirect (or other redirect if you are not using apache.)

Example.html is redirected to example.pl (or php or asp or whatever
language you are using). Example.pl grabs the contents of the other
page, reformats it, then sends it out to the browser.

This assumes that you have permission from the other site to use the
content.
Jun 8 '07 #5

P: n/a
On Fri, 08 Jun 2007 19:13:50 GMT
Brad <bm***************@bmegroup.comwrote:
I knew I didn't explain it well enough as soon as I hit the send
key...
I am speaking as a web developer. I would like to include output from
another web site in a window of my web page without using frames.
To do this, I wanted to read the info from that page and then rewrite
it in my page so it looks like it is showing up in a window on my web
site.
Are you also excluding <object>?
>
I want this to be done dynamically so if that page changes, I will
include the changes.
Well, assuming you have permission from the copyright holder of
the contents you want to include, see
http://apache.webthing.com/mod_publisher/

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
Jun 8 '07 #6

P: n/a
On 2007-06-08, Scott Bryce <sb****@scottbryce.comwrote:
Brad wrote:
>I knew I didn't explain it well enough as soon as I hit the send
key...
I am speaking as a web developer. I would like to include output from
another web site in a window of my web page without using frames.
To do this, I wanted to read the info from that page and then rewrite
it in my page so it looks like it is showing up in a window on my web
site.

I want this to be done dynamically so if that page changes, I will
include the changes.

Any ideas?

This would require some form of server side scripting, and possibly an
apache redirect (or other redirect if you are not using apache.)
Couldn't you do it on the client with XMLHttpRequest? But it seems
easier to use an iframe.
Jun 8 '07 #7

P: n/a
Ben C wrote:
Couldn't you do it on the client with XMLHttpRequest? But it seems
easier to use an iframe.
Possibly. I haven't done much client side scripting for a long time. I
would do it on the server.

As for an iframe, the OP said he didn't want to use frames. That may
include iframes. He also said he wants to "rewrite" it . I don't know if
that means change the content from the other site, or if it just means
insert it into the page being sent to the browser.
Jun 9 '07 #8

P: n/a
I was not familiar with iframes and just tested it and it seems to do
most of what we need. I did not like the older frames technology, but
this seems to address a lot of my issues.

On the other topic, though, I would like to further explore the
methods of redirecting content and then editing it some before it is
presented on our site.

I am familiar with the licensing issues when this is done and we are
addressing this also.

The mod_publisher solution seemed interesting.
is this a "for fee" product and does it only work with apache?

Is it in production somewhere?

Thnks,
Brad

On Fri, 08 Jun 2007 19:09:41 -0600, Scott Bryce
<sb****@scottbryce.comwrote:
>Ben C wrote:
>Couldn't you do it on the client with XMLHttpRequest? But it seems
easier to use an iframe.

Possibly. I haven't done much client side scripting for a long time. I
would do it on the server.

As for an iframe, the OP said he didn't want to use frames. That may
include iframes. He also said he wants to "rewrite" it . I don't know if
that means change the content from the other site, or if it just means
insert it into the page being sent to the browser.
Jun 9 '07 #9

P: n/a
Ben C wrote:
On 2007-06-08, Scott Bryce <sb****@scottbryce.comwrote:
>Brad wrote:
>>I would like to include output from
another web site in a window of my web page without using frames.

Couldn't you do it on the client with XMLHttpRequest?
Isn't that cross-site scripting, and a major security issue?

--
Berg
Jun 9 '07 #10

P: n/a
On 2007-06-09, Bergamot <be******@visi.comwrote:
Ben C wrote:
>On 2007-06-08, Scott Bryce <sb****@scottbryce.comwrote:
>>Brad wrote:

I would like to include output from
another web site in a window of my web page without using frames.

Couldn't you do it on the client with XMLHttpRequest?

Isn't that cross-site scripting, and a major security issue?
Good point. If a script is running an XMLHttpRequest I can't see that
there's anything to stop that script reading what it likes and posting
the details somewhere else.

So all you have to do is write an AJAX web browser that surreptitiously
sits inside the user's normal web browser.

Somebody must have thought of this...

OK this web site

http://www.xml.com/pub/a/2005/11/09/...d-harmful.html

,in the process of explaining ways to get around it, says that:

[..] all the newest web browsers impose a significant security
restriction on the use of XMLHttpRequest. That restriction is that you
aren't allowed to make XMLHttpRequests to any server except the server
where your web page came from. So, if your AJAX application is in the
page http://www.yourserver.com/junk.html, then any XMLHttpRequest that
comes from that page can only make a request to a web service using the
domain www.yourserver.com.
Jun 9 '07 #11

P: n/a
Brad wrote:
methods of redirecting content and then editing it some before it is
presented on our site.
These would be topics for another newsgroup.
Jun 9 '07 #12

This discussion thread is closed

Replies have been disabled for this discussion.