Internet Explorer 9 302 Error
Contents |
CRM 2011 Mobile Site ★★★★★★★★★★★★★★★ Austin JonesOctober 30, 20123 Share 0 0 I internet explorer 302 redirect problem recently worked with a customer who had end-users encountering a
Ie11 Redirect Problem
strange behavior where all attempts to access the main CRM 2011 web site were being being internet explorer redirect not working redirected to the CRM mobile site (../m/default.aspx). While this is normal behavior when accessing CRM via currently unsupported browsers (Firefox, Safari, Chrome, etc.), what made this ie not redirecting to https strange was that the users experienced this behavior in Internet Explorer. The behavior was consistent for all affected users, however not all users were affected. Also, launching an In-Private browsing session in IE (ctrl+shift+P) and navigating to CRM did not produce the behavior. We decided to run a fiddler trace for an affected user where the behavior was reproduced as well as for the same user in an In-Private browser session. After capturing both scenarios we filtered down to the /default.aspx GET request and subsequent redirect/request. The reproduced scenario showed a 302 redirect response to /m/default.aspx, the CRM mobile site, and the working scenario (In-Private session) showed the expected, subsequent GET request for /main.aspx. Having successfully reproduced the behavior and captured a working, control scenario we started to compare the two GET requests for /default.aspx. What became immediately apparent was that the User-Agent header value differed between the two requests. The control scenario showed a typical profile for Internet Explorer, but most intriguing was that the reproduced scenario specified a non-IE user agent in the header. The particular element of the user agent that caught our attention was ‘Chrome/22.0.1229.94’. Why did the request appear to be coming from a Chrome browser when using IE? This discovery prompte
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up HTTP 302 redirects between servers failing in IE, working in FF https://blogs.msdn.microsoft.com/crminthefield/2012/10/30/resolved-unexplained-internet-explorer-302-redirects-to-crm-2011-mobile-site/ and chrome up vote 3 down vote favorite I'm getting a blank white screen in IE when building a login system that redirects through a 3rd party server for authentication. (The browser is supposedly requesting a page back on my server when it fails.) The login goes like this: user requests http://www.myserver.com/ and is returned a 302 redirect to http://www.myserver.com/login.aspx along with some cookies storing any GET/POST parameters in http://stackoverflow.com/questions/16702112/http-302-redirects-between-servers-failing-in-ie-working-in-ff-and-chrome the initial request and the initial URL. user's browser requests http://www.myserver.com/login.aspx and is returned 200 OK, and given an HTML page with a username and password field. user submits the HTML form as a POST to http://www.myserver.com/login.aspx and receives a slightly different 200 response, (this HTML page has a drop down to choose from a list of users the username/password entered in step 2 has the right to login as, (for assistants logging in as their manager.)) user selects a value for the drop down and again submits the page as a POST to http://www.myserver.com/login.aspx. This time they receive a 302 redirect to https://secure.3rdpartyserver.ca/login/login.aspx?WSLR={encrypted login parameters including a URL to redirect back to} user's browser does a GET request for https://secure.3rdpartyserver.ca/login/login.aspx?WSLR={encrypted login parameters including a URL to redirect back to} and received back a 302 redirect to http://www.myserver.com/login.aspx?userID={number}&sessionId={number}&impersonateId={number} (Firefox/Chrome) user's browser does a GET request for http://www.myserver.com/login.aspx?userID={number}&sessionId={number}&impersonateId={number} and receives back a 302 redirect to http://www.myserver.com/ (and clears the cookies set in step 1.) (Firefox/Chrome) user's browser does a GET request for http://www.myserver.com/ and finally gets the HTML page the user wanted in the first place. Step 6 in IE9 however seems screwed up: If I don't monitor it at all I get a blan
Case and Cooling Fetish CPU & Motherboard Technologia Mobile Computing Outpost Networking Matrix Other Hardware Agora Classifieds Ars DIY Forum (Name TBD!) Operating Systems & Software Battlefront Microsoft OS & Software Colloquium Linux Kung Fu http://arstechnica.com/civis/viewtopic.php?t=1159718 Windows Technical Mojo Distributed Computing Arcana Macintoshian Achaia Programmer's Symposium The Server Room Ars Lykaion Gaming, Extra Strength Caplets The Lounge The Soap Box The Boardroom The Observatory Ars https://github.com/yiisoft/yii2/issues/9670 Help & Feedback Ars Subscription Member Areas Image Galleries PHP: 302 redirects work in every browser but IE 18 posts GohanIYIan Ars Praefectus et Subscriptor Registered: Oct 17, 2002Posts: 4668 Posted: Mon Oct 31, 2011 12:59 pm For $deity's internet explorer sake it's not even a rendering issue, it's HTTP protocol. This is what I'm doing:Code:if (!isset($_SERVER['HTTPS'])){ header("Location: https://complete.url/page"); header("Connection: close"); die();}I suspect it has something to do with the fact that I'm redirecting to the same host, but I'm at a loss what the actual issue is. If I redirect from an http page to another http page, there's no issue.According to fiddler, IE (8, XP) is receiving a proper-looking 302 response, internet explorer 9 but then it does nothing. No new request is issued. A DNS problem seems unlikely since the host doesn't change. If I browse the https URL directly in IE I don't get any certificate errors or warnings. I've tried using a 301 instead and that makes no difference.Is there any good way to coax real debug info out of IE beyond the "Cannot display page" page? kedlav Ars Centurion Registered: Feb 10, 2011Posts: 213 Posted: Mon Oct 31, 2011 4:44 pm Not that I really know of, but I'll ask the more general question of why are you using code based redirects instead of using webserver configuration? Hardcoding redirects is typically considered a very bad practice. Xon Ars Scholae Palatinae Registered: Nov 24, 2004Posts: 978 Posted: Mon Oct 31, 2011 10:00 pm "Connection: close" is a http/1.1 bit if it's being sent over a http/1.0 connection all bets are off. technophile Ars Legatus Legionis Tribus: Ogden, UT Registered: Aug 3, 1999Posts: 20968 Posted: Mon Oct 31, 2011 11:21 pm Also check that nothing is being sent to the browser prior to that header; that's a common PHP issue IME. koala Ars Praefectus Tribus: Barcelona, Spain Registered: Dec 31, 2001Posts: 4433 Posted: Tue Nov 01, 2011 5:57 am Yeah, I hadn't seen the close connection bit, I've never used that so you might want to try removing it- I'm not sure that belongs to the "canonical" way of redirecting. Also
Sign in Pricing Blog Support Search GitHub This repository Watch 1,233 Star 8,875 Fork 5,169 yiisoft/yii2 Code Issues 764 Pull requests 193 Projects 4 Wiki Pulse Graphs New issue Redirect problems in Internet Explorer 11 (IE11) #9670 Closed w3MediaLabs opened this Issue Sep 11, 2015 · 16 comments Projects None yet Labels type:bug Milestone 2.0.7 Assignees SilverFire 5 participants w3MediaLabs commented Sep 11, 2015 When I use the included IE debugger and view the response headers, the header is there and the url is correct, but IE11 isn't reading it. The response error: The response headers: One comment on StackOverflow suggested using the status code 200, and after testing, this does appear to work. I know the default redirect status code is 302, but this just doesn't work. Update I just respond with redirect to ajax request. Page redirects in all browsers except IE. I'm testting in IE11. I'm getting the following error in console: XMLHttpRequest: Network Error 0x2f76, Could not complete the operation due to error 00002f76.. URL for redirect sent in X-Redirect header. yii.js script handles this header, see line 265. var url = xhr.getResponseHeader('X-Redirect');. In case of IE11 getResponseHeader() returns null instead of URL. As I mentioned before I just respond with 200 status at the moment instead of 302. samdark added the feature:pjax label Sep 11, 2015 Yii Software LLC member SilverFire commented Nov 23, 2015 Duplicates yiisoft/jquery-pjax#26 SilverFire closed this Nov 23, 2015 flowip referenced this issue in yiisoft/jquery-pjax Nov 24, 2015 Closed Pjax redirect not working in Internet Explorer (IE11). #26 SilverFire reopened this Nov 24, 2015 SilverFire changed the title from Pjax redirect not working in Internet Explorer (IE11) to Redirect problems in Internet Explorer 11 (IE11) Nov 24, 2015 Yii Software LLC member SilverFire commented Nov 24, 2015 Added Update section to the topic. The problem does not really relates Pjax, it's about yii.js and IE SilverFire added type:bug status:to be verified and removed feature:pjax labels Nov 24, 2015 DMGPage commented Nov 27, 2015 When this bug will be corrected? I have same problem with IE 10 till edge. If I make ajax request and page redirects to login with status code 302, IE throw "SCRIPT7002: XMLHttpRequest: Network Error 0x2f76, Could not complete the ope