473,651 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4026
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.goo gle.com>...
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
2270
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 : http://www.voidspace.org.uk/atlantibots/pythonutils.html They're my new config object - ConfigObj - and my output object StandOut....... ConfigObj parses and updates simple config files (including multiple
1
1314
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 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...
5
3561
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). After the data validation through javascript(form.action = "ProcessData.asp" )I post this page to "ProcessData.asp" which process all
10
2895
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 being passed to the page specified in the Action property of the form. This is on a Windows 2000 Pro PC. I copied the code to another server (Windows XP Pro machine) and it DOES work as expected there. The first block is the data located near...
0
1291
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
5117
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. And K&R2 mentions "signed extension" everywhere. Reading some old clc posts, I've beginning to realize that these books are over-generalizing the topic. I am just wondering what the difference between the following pairs of terms are: 1)...
4
300
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
14108
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: " & Request.Form("NewsTitle") & "<br />" End If %>
6
7809
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 appreciate if someone could show me what is it that I am doing wrong. Below is the code that I am using. string viewstate = HttpUtility.UrlEncode(viewstatevalue); StringBuilder data = new StringBuilder(); data.Append("VAM_Group=");...
0
1420
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 elements: lines, borders, "labels", etc..) and another one for printing - it needs only the information from the dataset. I need this because i have a lot of "official" documents (medication prescriptions, sick leave etc...) so the user must see the...
0
8367
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8279
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8703
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8467
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7302
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.