473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

rerouting a web page to a file

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
11 5186
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Drifter | last post by:
I have just picked up a little hobble to fix some code for an e-commerce site (older). It uses Aliant as the Secure Transaction server (if familiar with it you will just shiver). Problem is the...
1
by: kenfar | last post by:
I've got a set of redundant marts that I'm trying to catalog on the client side to allow us to do two things: 1. manually recatalog to point at either of the two fast marts 2. automatically...
2
by: Andrew Connell | last post by:
I have an application where the authentication is based off another site (custom portal). The portal authenticates the user(s). Then, when they select an application, they are routed to the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
9
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.