|
From: GordonS on 21 Feb 2008 04:53 When redirecting an ASP page using the following code: document.location.href = "MatterBalanceDetails2.asp?matterdiwor=<%=Request.QueryString("matterdiwor")%>" & _ "&balancecode=<%=Request.QueryString("balancecode")%>" & _ "&balancename=<%=Request.QueryString("balancename")%>" & _ "&posted=<%=Request.QueryString("posted")%>" & _ "&billed=<%=Request.QueryString("billed")%>" & _ "&startdate=<%=Request.QueryString("startdate")%>" & _ "&enddate=<%=Request.QueryString("enddate")%>" & _ "&transdiwor=" & lTransDiwor & _ "&mattername=<%=Server.URLEncode(msMatterName)%>" & _ "&mattercode=<%=Server.URLEncode(msMatterCode)%>" & _ "&location=<%=msLocation%>" I sometime get a “HTTP/1.1 403 Forbidden” error The address in the window title looks correct. However looking at the IIS log file the URL has no GET or POST, but instead has a spurious number of characters as follows: 2008-02-21 08:42:17 192.0.0.46 PILSYS\DarrenB 192.0.0.70 80 %09%09%09%09%09%09%09%3Cxsl%3Aattribute+name%3D%22class%22%3Etext_small+text_strong%3C%2Fxsl%3Aattri /lwc/ClientMatterEnquiry/MatterBalanceDetails2.asp matterdiwor=28815&balancecode=WIP&balancename=Work%20in%20Progress&posted=&billed=&startdate=&enddate=&transdiwor=531&mattername=Mrs+Elaine+Mowat&mattercode=MOW%2F0001%2F00001&location=Client%20Matter%20Enquiry%20|%20Matter%20Accounts 403 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506;+InfoPath.2) Any ideas why this is happening? -- Gordon Smith
From: "Steven Cheng" on 21 Feb 2008 20:02 Hi Gordon, From your description, you use client script to do redirection in ASP page, however, sometimes you'll get 403 forbidden error on that page redirection ,correct? Does the problem occur very often? Based on the code snippet you provided, the URL to redirect is dynamically constructed from some variables. Thus, I think it possible that some part of the URL is encoded into some certain characters that are invalid to the server(so the server return forbidden error). If possible, I would suggest you try simplify the url construction and test with different data to see whether a certain kind of variables(that construct the url) can result to such behavior. Sincerely, Steven Cheng Microsoft MSDN Online Support Lead ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- >From: =?Utf-8?B?R29yZG9uUw==?= <GordonS(a)noemail.noemail> >Subject: Random HTTP/1.1 403 Forbidden >Date: Thu, 21 Feb 2008 01:53:03 -0800 > >When redirecting an ASP page using the following code: >document.location.href = >"MatterBalanceDetails2.asp?matterdiwor=<%=Request.QueryString("matterdiwor" )%>" & _ > >"&balancecode=<%=Request.QueryString("balancecode")%>" & _ > >"&balancename=<%=Request.QueryString("balancename")%>" & _ > >"&posted=<%=Request.QueryString("posted")%>" & _ > >"&billed=<%=Request.QueryString("billed")%>" & _ > >"&startdate=<%=Request.QueryString("startdate")%>" & _ > >"&enddate=<%=Request.QueryString("enddate")%>" & _ > "&transdiwor=" & >lTransDiwor & _ > >"&mattername=<%=Server.URLEncode(msMatterName)%>" & _ > >"&mattercode=<%=Server.URLEncode(msMatterCode)%>" & _ > >"&location=<%=msLocation%>" > >I sometime get a “HTTP/1.1 403 Forbidden�?error > >The address in the window title looks correct. However looking at the IIS >log file the URL has no GET or POST, but instead has a spurious number of >characters as follows: > >2008-02-21 08:42:17 192.0.0.46 PILSYS\DarrenB 192.0.0.70 80 >%09%09%09%09%09%09%09%3Cxsl%3Aattribute+name%3D%22class%22%3Etext_small+tex t_strong%3C%2Fxsl%3Aattri >/lwc/ClientMatterEnquiry/MatterBalanceDetails2.asp >matterdiwor=28815&balancecode=WIP&balancename=Work%20in%20Progress&posted=& billed=&startdate=&enddate=&transdiwor=531&mattername=Mrs+Elaine+Mowat&matte rcode=MOW%2F0001%2F00001&location=Client%20Matter%20Enquiry%20|%20Matter%20A ccounts >403 >Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.5072 7;+.NET+CLR+3.0.04506;+InfoPath.2) > >Any ideas why this is happening? > >-- >Gordon Smith >
|
Pages: 1 Prev: Retrieving values of dynamic lists Next: The precision is invalid. -- Stored procedure,.. |