473,545 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I "forward" a page unmodified?

I have an ASP site that generates PDFs which is on my Intranet and
inaccessible to customers.

I have customers connected to a PHP website which is publicly
accessible. I would like my PHP website to read the generated PHP and
return the result - which writes a PDF to screen.

Here's a diagram of what I am trying to achieve:

Customer posts data to my PHP website
PHP Website opens a URL on the ASP website
ASP website replies by sending a PDF back
My PHP site shows the PDF file exactly as it should be and doesn't
give away the invoked parameters.
Jun 27 '08 #1
4 1078
On 16 Jun, 12:22, Philluminati <Phillip.Ross.T ay...@gmail.com wrote:
I have an ASP site that generates PDFs which is on my Intranet and
inaccessible to customers.

I have customers connected to a PHP website which is publicly
accessible. I would like my PHP website to read the generated PHP
What is this "generated PHP"?
and
return the result - which writes a PDF to screen.
What are you using to "write the PDF to the screen"?
Jun 27 '08 #2
Customer posts data to my PHP website
PHP Website opens a URL on the ASP website
ASP website replies by sending a PDF back
My PHP site shows the PDF file exactly as it should be and doesn't
give away the invoked parameters.
<?php

// check parameters and access level...

// if all is o.k.

header('Content-type: application/pdf');
readfile($local PdfToUrl);

?>
Jun 27 '08 #3
Philluminati wrote:
I have an ASP site that generates PDFs which is on my Intranet and
inaccessible to customers.

I have customers connected to a PHP website which is publicly
accessible. I would like my PHP website to read the generated PHP and
return the result - which writes a PDF to screen.

Here's a diagram of what I am trying to achieve:

Customer posts data to my PHP website
PHP Website opens a URL on the ASP website
ASP website replies by sending a PDF back
My PHP site shows the PDF file exactly as it should be and doesn't
give away the invoked parameters.
How are you opening a URL to the ASP website? If you're using a
header('Locatio n:...') call or similar, no - the browser will be doing
the opening. If you're using something like readfile(), the browser
won't see the URL.

In the latter case, set the appropriate content in the header and send
the file. But you can't guarantee it will be displayed in the user's
browser - all you can do is recommend it. The user still has ultimate
control over what happens with the file.

Also, if you don't what what's on your ASP site to be available from the
internet, don't make it open to the internet. Do NOT depend on hiding
urls to provide any security.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jun 27 '08 #4
On Jun 16, 1:14 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
Philluminati wrote:
I have an ASP site that generates PDFs which is on my Intranet and
inaccessible to customers.
I have customers connected to a PHP website which is publicly
accessible. I would like my PHP website to read the generated PHP and
return the result - which writes a PDF to screen.
Here's a diagram of what I am trying to achieve:
Customer posts data to my PHP website
PHP Website opens a URL on the ASP website
ASP website replies by sending a PDF back
My PHP site shows the PDF file exactly as it should be and doesn't
give away the invoked parameters.

How are you opening a URL to the ASP website? If you're using a
header('Locatio n:...') call or similar, no - the browser will be doing
the opening. If you're using something like readfile(), the browser
won't see the URL.

In the latter case, set the appropriate content in the header and send
the file. But you can't guarantee it will be displayed in the user's
browser - all you can do is recommend it. The user still has ultimate
control over what happens with the file.

Also, if you don't what what's on your ASP site to be available from the
internet, don't make it open to the internet. Do NOT depend on hiding
urls to provide any security.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===
Thanks for the input guys. Alexley's example has worked perfectly!!!
Thank you so much. Thanks to the Captain and Jerry too for taking the
time to right.

You see I don't really know much PHP so I didn't even know where to
begin but now I've already finished :-)

Thanks guys.

Phill
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

388
21437
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's worth the $25USD. I'm just looking for a book on Pointers, because from what I've read it's one of the toughest topics to understand. thanks in...
7
3689
by: theyas | last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE I've asked about this before and didn't get a satisfactory answer (check your browser) so now that I've had the time to set up a reasonable little test that I can post somewhere, I'll try again....
0
4390
by: serge | last post by:
I have 2 SQL Enterprise Editions running SP2 and same collation. When i try to start database mirroring I get the following error message: "The remote copy of database "ABC" has not been rolled forward to a point in time that is emcompassed in the local copy of the database log. (Microsoft SQL Server, Error: 1412)" Both SQL Server...
0
7459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7803
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5322
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1871
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.