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

Converting GET URL to a POSTed one while maintaining session

I've got an app that does a ton of Response.Redirect's to bring up various
pages. Due to some printer-friendly stuff we use, the URLs all have to pass
their data in via the querystring. However, we're hitting problems where
the URL becomes too long, so now I'm trying to convert all the
querystring-based URLs to simple ones where the key/value pairs are placed
in the header rather than in the URL. I have it working via
WebClient.UploadValues, and I had an attempt via streaming data manually
to/from HttpWebRequests/Responses, but the issue I run into every time is
that my resulting page is the login page, since the new calls fail forms
authentication. Is there some way to transfer the session/authentication
data to the client or response/request, or should I find a new means for
converting to POST?
Nov 19 '05 #1
1 1121
Keith Patrick wrote:
I've got an app that does a ton of Response.Redirect's to bring up
various pages. Due to some printer-friendly stuff we use, the URLs
all have to pass their data in via the querystring. However, we're
hitting problems where the URL becomes too long, so now I'm trying to
convert all the querystring-based URLs to simple ones where the
key/value pairs are placed in the header rather than in the URL.
Only cookies carry data in HTTP headers... or do you make up your own
header?
I have it working via WebClient.UploadValues, and I had an attempt via
streaming data manually to/from HttpWebRequests/Responses, but the
issue I run into every time is that my resulting page is the login
page, since the new calls fail forms authentication. Is there some
way to transfer the session/authentication data to the client or
response/request, or should I find a new means for converting to
POST?


You need to manage your web application's session cookie. See
System.Net.CookieContainer for client-side cookie management.

Cheers,

--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #2

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

Similar topics

1
by: BillG | last post by:
How do I convert a session object to a user object Dim _Customer as Customer _Customer = Session("Customer") How do I convert the Session object to the user object in vb syntax?
7
by: RCS | last post by:
Okay, a rather 'interesting' situation has arisen at a place I work: I need to convert a database from Access to something that can be used over the web. I am currently maintaining and...
2
by: genc_ymeri | last post by:
Hi, Well, I'm looking around for another opinion. We have two webservers, the legacy one writen in ASP and the new one in ASP.Net. Once a user logs in the ASP.Net web app, the session of the...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
2
by: Chris | last post by:
Hi, I am building a single webform/webpage asp.net application using VB.NET. I have created lots of classes for this web application. On page load I use a facade controller pattern class to...
9
by: Stephen H. | last post by:
Hi, I have an existing web application with java beans that I wanne migrate to ASP.NET using C#. The existing web application has some jsp files that use java beans as follows: .... <%@...
4
by: Sam | last post by:
I have an asp.net 2.0 app that uses a sitemap, Master Page, and has several content pages. While this feature has simplified the process of creating a data-driven site menu, it does seem to have...
2
by: aswin.paranji | last post by:
Hi All, Currently I'm working on a migration project from asp to asp.net. I use a tool asp2aspx to migrate the asp pages. the problem is when i migrate to asp.net 2.0 i'm getting lots of...
4
by: moni | last post by:
Hi, I was hoping I could get a help on this one. I am creating a simple website, in which I have a login after which the user gets logged in using a session variable where I append the ID,eg ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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...

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.