473,695 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Redire ct 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.Redire ct . 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.Redire ct 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.Redire ct back to Page A happens. The db
update is successful and the next statement is the Response.Redire ct => 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&txtI STManHourIS=0&t xtISTValueIS
=&txtRemarks=Te st+-+bitte+l%F6sche n&txtTaskNr=27& txtActNr=189&tx tActPhaseNr=
30&txtResponsib leNr=31&txtPerf ormanceNr=11&tx tISTValueNr

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;
ASPSESSIONIDAAD DDBCB=HECDHOBDM GNHBEFOLLBPDPAE ;

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.adm in.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.Redire ct 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 4042
a) There is a proxy between your client and the server - maybe the proxy is
having issues
b) Are you using Server.URLEncod e() to encode the values you are passing in
the querystring when you are doing the Response.Redire ct?

Cheers
Ken

"D. Nii" <dn**@hawaii.rr .com> wrote in message
news:PD******** **********@twis ter.socal.rr.co m...
: Hi there,
:
: I have a web application that recently got redesigned and now makes use of
: Response.Redire ct . 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.Redire ct 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.Redire ct back to Page A happens. The db
: update is successful and the next statement is the Response.Redire ct =>
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&txtI STManHourIS=0&t xtISTValueIS
:
=&txtRemarks=Te st+-+bitte+l%F6sche n&txtTaskNr=27& txtActNr=189&tx tActPhaseNr=
: 30&txtResponsib leNr=31&txtPerf ormanceNr=11&tx tISTValueNr
:
: 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;
: ASPSESSIONIDAAD DDBCB=HECDHOBDM GNHBEFOLLBPDPAE ;
:
: 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.adm in.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.Redire ct 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.QuerySt ring, 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******** **********@twis ter.socal.rr.co m...
:
: > 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.URLEncod e() to encode the values you are passing
: in
: > the querystring when you are doing the Response.Redire ct?
:
: No, it doesn't. This is the code for the redirection URL:
:
: redirectURL = Request.QuerySt ring
: 'Remove all the feedback specific data from QueryString, i.e. everything
: following the "action" entry
: actionIndex = InStr(1,redirec tURL,"&action=" ,1)
: redirectURL = Left(redirectUR L,actionIndex-1)
: 'Redirect
: Response.Redire ct "TaskDetails.as p?" & 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
5806
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 same category id that it started out on. I'm trying to pass with response.redirect using response.redirect "mypage.asp?number=" & number But it dons't seem to work. Why? Bill
6
2905
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, so I need to programmatically redirect to it. Unfortunately, I can't find a way to do it. There is no Response.Form or Response.Attributes (Request has Form and Params, but they are read-only). I've tried using AppendHeader to pass my K/V pairs...
15
15428
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.. If you try to load a legacy ASP app, I do this: If Len(SessionID) <> 40 Then Response.Redirect "/WAS/Default.aspx?AppCode=2400" End If
9
11727
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 the same time in new window of browser. I could have achieved this using window.open() of javascript but then it will serve as pop up and clients requirement is that not to show as popup window due to many users blocked popups.
5
4568
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 a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
5
4865
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 drop down list and then clicks one of a couple of buttons to send them off to another page. We do a little bit of validation in the Event Handler and then do a Response.Redirect off to the next page. Then the page just sits there and never...
5
7862
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 this is done, I'd like to have the page redirect to a new page that says "You have successfully blah blah blah." This doesn't seem to be possible, since the response stream has already been sent with the .vcs file. Does anyone have any ideas for a...
9
4343
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). The browser then makes a new request to the server to redirect itself to abcd.asp after which the user gets redirected to abcd.asp. But in case of Server.Execute (or Server.Transfer), when the server
9
2895
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") Unfortunately I do not seem to be able to redirect to a custom protocol url, any ideas why? Basically I'm trying to implement this functionality so no coding need take place to get the redirection from the consuming web
0
9116
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
8985
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
8849
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
8826
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7661
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
5839
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3007
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
3
1976
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.