473,386 Members | 1,835 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.

Response.Redirect doesn't seem to work on NT 4.0 SP6a clients!

Hi there,

I have a web application that recently got redesigned and now makes use of
Response.Redirect . The "new" application is hosted on Win2000 and works for
all kinds of clients using IE 5.0 + and different operating systems
(Win2000, WinXP, WinME, Win98).

Functions that use the Response.Redirect no longer work for clients using NT
4.0 SP6a IE 5.5 or IE 6.0.

The setup of such a function is as follows:

The function on Page A does a submit of a couple of form fields to Page B.
On Page B a database update with the form values is performed and after
successful execution a Response.Redirect back to Page A happens. The db
update is successful and the next statement is the Response.Redirect => the
client sees the following error message:

************************begin error message*********
ERROR
The requested URL could not be retrieved

While trying to process the request:
txtISTTaskDate=31.07.2003&txtISTManHourIS=0&txtIST ValueIS
=&txtRemarks=Test+-+bitte+l%F6schen&txtTaskNr=27&txtActNr=189&txtActP haseNr=
30&txtResponsibleNr=31&txtPerformanceNr=11&txtISTV alueNr

s-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Referer:
http://tools.pmportal.biz/apweb/Modu...nit=8&FBUnit=1

Accept-Language: de-ch
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Host: tools.pmportal.biz
Content-Length: 190
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: origLCID=2055; newLCID=2055; language=4; role=Team; account=seco;
debug=0;
ASPSESSIONIDAADDDBCB=HECDHOBDMGNHBEFOLLBPDPAE;

The following error was encountered:
Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:
Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed

Your cache administrator is fw*****@bit.admin.ch.
Generated Thu, 31 Jul 2003 10:54:45 GMT by www-proxy.admin.ch
(Squid/2.4.STABLE1)
*************************************** end error message*****

Why does the Response.Redirect work for a Win2000 client but not an NT 4.0
SP6a client? How can this be fixed?!

Your help is urgently needed!

Thanks,

Daniela
Jul 19 '05 #1
2 4024
a) There is a proxy between your client and the server - maybe the proxy is
having issues
b) Are you using Server.URLEncode() to encode the values you are passing in
the querystring when you are doing the Response.Redirect?

Cheers
Ken

"D. Nii" <dn**@hawaii.rr.com> wrote in message
news:PD******************@twister.socal.rr.com...
: Hi there,
:
: I have a web application that recently got redesigned and now makes use of
: Response.Redirect . The "new" application is hosted on Win2000 and works
for
: all kinds of clients using IE 5.0 + and different operating systems
: (Win2000, WinXP, WinME, Win98).
:
: Functions that use the Response.Redirect no longer work for clients using
NT
: 4.0 SP6a IE 5.5 or IE 6.0.
:
: The setup of such a function is as follows:
:
: The function on Page A does a submit of a couple of form fields to Page B.
: On Page B a database update with the form values is performed and after
: successful execution a Response.Redirect back to Page A happens. The db
: update is successful and the next statement is the Response.Redirect =>
the
: client sees the following error message:
:
: ************************begin error message*********
: ERROR
: The requested URL could not be retrieved
:
: While trying to process the request:
: txtISTTaskDate=31.07.2003&txtISTManHourIS=0&txtIST ValueIS
:
=&txtRemarks=Test+-+bitte+l%F6schen&txtTaskNr=27&txtActNr=189&txtActP haseNr=
: 30&txtResponsibleNr=31&txtPerformanceNr=11&txtISTV alueNr
:
: s-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
: application/x-shockwave-flash, */*
: Referer:
:
http://tools.pmportal.biz/apweb/Modu...nit=8&FBUnit=1
:
: Accept-Language: de-ch
: Content-Type: application/x-www-form-urlencoded
: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
: Host: tools.pmportal.biz
: Content-Length: 190
: Proxy-Connection: Keep-Alive
: Pragma: no-cache
: Cookie: origLCID=2055; newLCID=2055; language=4; role=Team; account=seco;
: debug=0;
: ASPSESSIONIDAADDDBCB=HECDHOBDMGNHBEFOLLBPDPAE;
:
: The following error was encountered:
: Invalid Request
:
: Some aspect of the HTTP Request is invalid. Possible problems:
: Missing or unknown request method
: Missing URL
: Missing HTTP Identifier (HTTP/1.0)
: Request is too large
: Content-Length missing for POST or PUT requests
: Illegal character in hostname; underscores are not allowed
:
: Your cache administrator is fw*****@bit.admin.ch.
: Generated Thu, 31 Jul 2003 10:54:45 GMT by www-proxy.admin.ch
: (Squid/2.4.STABLE1)
: *************************************** end error message*****
:
: Why does the Response.Redirect work for a Win2000 client but not an NT 4.0
: SP6a client? How can this be fixed?!
:
: Your help is urgently needed!
:
: Thanks,
:
: Daniela
:
:
Jul 19 '05 #2
Some characters are not allowed a part of a URL, eg spaces need to be
encoded as %20 or + depending on where in the URL it is located.

Some browsers automatically encode the URL before sending the request (maybe
the version of IE that is on the Windows 2000 box), and others don't (maybe
the browser that's on the Windows NT box).

When you get the Request.QueryString, then querystring is decoded. You need
to "re-encode" it if it contains illegal characters.

Note, you only encode the values you pass, not the names of the variables.
Probably best to do this in a loop.
Cheers
Ken
"D. Nii" <dn**@hawaii.rr.com> wrote in message
news:1A******************@twister.socal.rr.com...
:
: > a) There is a proxy between your client and the server - maybe the proxy
: is
: > having issues
:
: I didn't think the proxy could be the problem because the customer is
using
: at the same location an NT box (which doesn't work) and a Win2000 box
(which
: works). But I will follow up to make sure I am not just assuming something
: here.
:
: > b) Are you using Server.URLEncode() to encode the values you are passing
: in
: > the querystring when you are doing the Response.Redirect?
:
: No, it doesn't. This is the code for the redirection URL:
:
: redirectURL = Request.QueryString
: 'Remove all the feedback specific data from QueryString, i.e. everything
: following the "action" entry
: actionIndex = InStr(1,redirectURL,"&action=",1)
: redirectURL = Left(redirectURL,actionIndex-1)
: 'Redirect
: Response.Redirect "TaskDetails.asp?" & redirectURL
:
: Should I be using it?
:
: Thanks,
:
: Daniela
:
:
Jul 19 '05 #3

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

Similar topics

1
by: Bill | last post by:
I'm trying to retain a value that I pass to a processing page. When the page is done processing, I use the response.redirect to forward to the page I started on, and i want that page to hold the...
6
by: Keith Patrick | last post by:
I have to do some programmatic redirects (in several pages) based on URLs I am given from an external source. The URLs have querystrings at the end, but one in particular is about 240 chars long,...
15
by: Drebin | last post by:
I am retrofitting a central login application and want to be able to read the Request.ServerVariables so that when they have logged on, I can send them back to wherever they were trying to go.. ...
9
by: anuragsji | last post by:
Hi, I have one combo box and GO button on the click of GO button page submitted and according to selection of one of the option from combo I want to redirect my page to some new asp page but at...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
5
by: =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= | last post by:
We have been running into some problems where using Response.Redirect causes the page to hang and it never actually redirects. Here's the scenario: User opens the page, selects an item from the...
5
by: danielhamd | last post by:
I have a link on an ASP page that loads the Response stream with a .vcs file stream and then sends it to the clients machine. This opens the calendar entry in their Outlook, etc. However, once...
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
9
by: Nick | last post by:
Hi there, I would like to perform something like the following from my vb.net web service, being invoked via HTTP Post Call HttpContext.Current.Response.Redirect("myprotocol://myurl") ...
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...
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
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,...

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.