473,395 Members | 1,701 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,395 software developers and data experts.

Viewing the output of a form post and preserving authentication

I am trying to build a web form that uses the "POST" method (too much
data for GET) to send data to a second form, then displays the
response of that form post. The second web form requires standard
authentication. I have a solution implemented in which the following
occurs:

1) My website posts form data to a backend cgi script.
2) The script authenticates and sends data to the second form.
3) The script downloads and prints the contents of the response from
the second form to the user's browser window(print
$response->content).

This seems to work fine; however, the content of the response from the
second form contains several links. Clicking on one of these links
requires the user to authenticate, since the server, and not the
client, has been authenticated. I need to do this in a way such that
this second authentication is not neccessary.

What I would really like to do is post the form data and then redirect
to the actual response page on the remote server. However, I have
read several previous posts which seem to indicate that this is nearly
impossible, at least if I want my page to work with more than one
browser.

Does anyone know of another way that I can get around this problem?

Any help would be greatly appreciated.

-Jeremy
Jul 19 '05 #1
2 4015
Jeremy Phillips wrote:
This seems to work fine; however, the content of the response from the
second form contains several links. Clicking on one of these links
requires the user to authenticate, since the server, and not the
client, has been authenticated. I need to do this in a way such that
this second authentication is not neccessary.


What you are asking for appears to be impossible.
Jul 19 '05 #2
je*************@pfizer.com (Jeremy Phillips) wrote in message news:<63*************************@posting.google.c om>...
I am trying to build a web form that uses the "POST" method (too much
data for GET) to send data to a second form, then displays the
response of that form post. The second web form requires standard
authentication. I have a solution implemented in which the following
occurs:

1) My website posts form data to a backend cgi script.
2) The script authenticates and sends data to the second form.
3) The script downloads and prints the contents of the response from
the second form to the user's browser window(print
$response->content).

This seems to work fine; however, the content of the response from the
second form contains several links. Clicking on one of these links
requires the user to authenticate, since the server, and not the
client, has been authenticated. I need to do this in a way such that
this second authentication is not neccessary.
You would need to edit all the links so that thay are proxied through
your server too.
What I would really like to do is post the form data and then redirect
to the actual response page on the remote server.


You can only do this if the remote server is responding with a
bookmarkable page (i.e. it's either a "FOUND" response or it's got a
Content-location header that can be used to re-fetch the same page
with a GET).

This, of course, has nothing to do with Perl.

This newgroup does not exist (see FAQ). Please do not start threads
here.
Jul 19 '05 #3

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

Similar topics

2
by: Fuzzyman | last post by:
A couple of little scripts I've written for my python project (AAAcontroller - see www.atlantibots.org.uk) might be useful to others - so I've stuck them up on the web : ...
1
by: Jeremy Phillips | last post by:
I am trying to build a web form that uses the "POST" method (too much data for GET) to send data to a second form, then displays the response of that form post. The second web form requires...
5
by: mvr | last post by:
Hi all IIS 5.0, ASP, and https:// I have "DataEntrypage.asp" which is a data entry page(about 250 data elements includes text boxes, radio buttons, check boxes, drop down boxes etc). ...
10
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
0
by: zislam | last post by:
Hi: Could anyone pls let me know how can I avoid the windows authentication screen for viewing a report in Reporting Service. TIA Zahir
16
by: TTroy | last post by:
Hello, I'm relatively new to C and have gone through more than 4 books on it. None mentioned anything about integral promotion, arithmetic conversion, value preserving and unsigned preserving. ...
4
by: Anil | last post by:
Hi All, We will be using form authentication in out website. We have two totally different types of users in our site. Type 1 Has 2 different roles in it Type 2 Has 3 different roles in it
10
by: Steve Last | last post by:
Hi all, I’m using IIS6 for our college Intranet and I’m having trouble using Request.Form. Here is my code: <% If Request.QueryString("action") = "show" Then Response.Write "title: " &...
6
by: nganapat | last post by:
I am trying to post form values to a https web page programmatically using Httpwebrequest but no matter what I do the same login page is returned instead of the next page. I would very much...
0
by: Deceneu | last post by:
Hi everyone, this is my first post so please bear with me. I have the following situation: i have a local report that needs to have two "versions": one for viewing in the report viewer (with all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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,...
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.