HttpURLConnection doesn't handle htaccess redirect

I wrote this code to check if there is redirect and i successed but it doesn't handle htaccess redirect
I know htaccess redirect == 301 but here it give me 200 WHY
I want to handle htaccess redirect any help ?
   URL link=null; int httpResponseCode=0;
    try {
        link = new URL("http://www.vbseo.com/forumdisplay.php?f=234");
        HttpURLConnection linkconnection=(HttpURLConnection)link.openConnection();
        httpResponseCode = linkconnection.getResponseCode();
    } catch (Exception e) {}
    System.out.println(httpResponseCode);

It actually follows redirects automatically, that's why you get a 200 response. It is possible to tell it not to follow redirects, just have a look at the API documentation and you will see the method to call if you want that to happen.

Similar Messages

  • AFCS.java doesn't handle the http redirect request

    Hi AFCS team,
         I just tried out the java script for external authentication. By default, when calling new AFCS.AccountManager(accountURL);, I'll get an error like the following:
    "GET http://connectnow.acrobat.com/myaccount?mode=xml&accountonly=true& failed with status 302";
         Actually this url will be redirected to "https://na2.connectnow.acrobat.com/myaccount?mode=xml&accountonly=true&" for me.
         However,  the script handles the http response only when status=200, or it consider the status as error.
         So I added following code to http_get()/http_post(), everything goes well so far.
                if (responseCode == 200) {
                    return connection.getInputStream();
                // handle the redirect status
                else if (responseCode == 302) {
                    return http_get(connection.getHeaderField("Location"), headers);
                else {
                   throw new Error();
         Is it something need to be fixed in next release?
    Thanks!
    Jinni

    So, the code was there a couple of releases ago, and then I took it out because I noticed that the lower level API were already processing redirections (but at this point I don't know on which case)
    I'll do some more testing and if needed add the code back. Thanks for pointing it out!

  • Firefox doesn't handle chained deadkeys on Windows

    It seems that Firefox doesn't handle chained deadkeys as produced by for example this layout http://blogs.msdn.com/b/michkap/archive/2011/04/16/10154700.aspx . Correct characters are not produced as in contrast with them being produced in Windows explorer.

    I think it will be hard to get clear answers about custom keyboard layouts here...
    I did see a bug that sounds related: [https://bugzilla.mozilla.org/show_bug.cgi?id=791300 791300 – Dead-key diacritics non-functional in text forms and address bar] -- the last comment mentions a code comment that chaining is not supported.
    About the bug tracking system:
    * [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette]
    * [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]

  • I have Elements 10. It doesn't handle RAW. It also doesn't allow more than one Fine JPG to be downloaded at a time. Can this be fixed with a download, or am I stuck to upgrade to Elements 13?

    I have Elements 10. It doesn't handle RAW. It also doesn't allow more than one Fine JPG to be downloaded at a time. Can this be fixed with a download, or am I stuck to upgrade to Elements 13?

    philips69374220 a écrit:
    I have Elements 10. It doesn't handle RAW.
    Yes, it does.
    FAQ: Will Photoshop Elements work with my camera, or Why won't my raw files open?
    It can handle the raw files covered by the ACR 6.7 version.
    For newer cameras, you can use the free Adobe DNGconverter to batch convert a folder into the DNG raw format that PSE10 can read and edit.
    (see the link in the upper document)
    Fine JPG to be downloaded at a time.
    All versions of Elements can open many jpegs at the same time, and the organizer lets you import as many as you want?

  • .htaccess redirect not working

    I have created a .htaccess file with the following code.
    "RedirectMatch permanent ^/index.html$ http://www.caymanvacation.com/index.cfm"
    It is in the domains root folder with the files it is redirecting and it doesn't work.
    Any advice on how to det a redirect to work.
    Dual G5 Xserve   Mac OS X (10.3.9)  

    For a start, .htaccess files are disabled by default. You'll need to add/edit the <Directory> directive for the directory in question to AllowOverride FileInfo in order to use RedirectMatch.
    However, it isn't clear that you need to do this.
    If all you're trying to do is make 'index.cfm' the default document instead of /index.html, you can do this using the DirectoryIndex command. This tells apache the filename to use as the default document. Setting (or adding) index.cfm to this list will automatically serve that page if the user omits it.
    If you do still want to use redirects (maybe because you have existing links/bookmarks to index.html) then you don't need to use RedirectMatch.
    Since RedirectMatch uses regular expression parsing to match the URI there is a certain overhead in using it. You can get the exact same result with less overhead using a regular Redirect:
    Redirect /index.html http://www.caymanvacation.com/index.cfm
    This lightweight version will have the exact same effect but with lower overhead since it doesn't use regular expression parsing, just simple string matching.

  • Handle a redirect when invoking a webservice

    Hello everyone,
    recently we launched SAP in our business and to manage the communication between SAP and some other applications we use web services.
    SAP now offers me some services and normally I just get the WSDL description of the service, fill the necessary input with a transform and invoke the service. Works fine.
    In one WSDL for example you can find the following location in the address-tag of the service: http://SAP0003:8010/sap/bc/srt/rfc/sap/book_ws/100/yca_book/yca_binding.
    I send the request to that URL and get a response.
    But now there's this problem: The server SAP0003 is just one of three SAP (SAP0001 & SAP0002) servers in our company and if these server breaks down, all request will abort, because they are unable to connect to the server - obviously.
    Therefor one of our SAP consultants set up a redirect. I now have to connect to the main server (SAP0001) on another port (8110) and would get redirected to a running server. If I now access the address http://SAP0001:8110/sap/bc/srt/rfc/sap/book_ws/100/yca_book/yca_binding in my browser I indeed get redirected, for example to URL stated above (http://SAP0003:8010/sap/bc/srt/rfc/sap/book_ws/100/yca_book/yca_binding). They use the port 8110 a message server port in SAP.
    But now what I can't do is just alter the URL in the WSDL from SAP0003:8010 to SAP0001:8110, because then the server also claims that it can't connect to the end point.
    So is there a way in BPEL to call the message server port, receive the URL and call that server?
    The consultant also mentioned a web dispatcher to handle the load balancing but this isn't installed yet and we currently trying to figure out a way without it.
    I really hope you guys unterstand my problem and I want to apologize for every grammar mistakes I made.
    We're using SOA Suite 11(0.0.5 I guess?) and BPEL 2.0.
    Regards,
    Carsten
    Edited by: 932813 on 08.05.2012 07:46

    Hi everyone,
    I have a problem, I am connectin to a lotus notes
    database to download a file (using URLConnection)
    ...gbp.nsf/agWebLAL?OpenAgent&UNID=A9D19EDE65447DF5C12
    56F2000465E87
    The thing is lotus notes doesn't give the filename,
    it redirects me to something first, then downloads
    the filename..
    Does anyone know of a way on how I can get the final
    url (the place where I am being redirected), filename
    and mimetype
    Thanks!This connects to a file in the database, and I was wondering if there is a way to get the final URL, the filename and the mimetype before downloading it? It downloads fine, I just want to be able to get the details before my users download it..

  • ADF Mobile Error handling and redirect

    I'm stuck on how to handle errors within my ADF Mobile application. My application consumes a number of web services and we have found we often get error messages when phone connections switch from wifi to 3g or lose connection altogether. These are errors such as SSL handshake failure, HTTP500 errors, and also errors where it can't display the binding eh "Unable to get value for the property due to invalid binding iterator" because a WS call has failed. From the little information I can find - and none of it specific to ADF Mobile, I think I need to write an error handler class which I set against ErrorHandlerClass in databinding.cpx - if that correct? Am I able to catch these errors using that method and if so has anyone got any examples at all. Ideally what I'd like to do when I've caught those errors is redirect to another page (showing something like facebooks app does when it loses a connection and says tap to try again), does anyone have any suggestions or examples?
    thanks
    lynsey

    A sample for ADF Mobile Error Handling.
    SDA013
    Error Handling in ADF Mobile
    https://java.net/projects/smuenchadf/pages/ADFMobile#SDA013

  • How to handle a redirect on a Lotus notes DB

    Hi everyone,
    I have a problem, I am connectin to a lotus notes database to download a file (using URLConnection)
    ...gbp.nsf/agWebLAL?OpenAgent&UNID=A9D19EDE65447DF5C1256F2000465E87
    The thing is lotus notes doesn't give the filename, it redirects me to something first, then downloads the filename..
    Does anyone know of a way on how I can get the final url (the place where I am being redirected), filename and mimetype
    Thanks!

    Hi everyone,
    I have a problem, I am connectin to a lotus notes
    database to download a file (using URLConnection)
    ...gbp.nsf/agWebLAL?OpenAgent&UNID=A9D19EDE65447DF5C12
    56F2000465E87
    The thing is lotus notes doesn't give the filename,
    it redirects me to something first, then downloads
    the filename..
    Does anyone know of a way on how I can get the final
    url (the place where I am being redirected), filename
    and mimetype
    Thanks!This connects to a file in the database, and I was wondering if there is a way to get the final URL, the filename and the mimetype before downloading it? It downloads fine, I just want to be able to get the details before my users download it..

  • Calendar doesn't handle exceptions on recurring items

    There are several cases where exceptions are not handled for recurring items:
    1) If the Host makes an exception (room change / time change / cancellation) that is not reflected in the iPhone
    2) If a participant wishes to decline from one particular instance, it deletes the entire recurring event.
    Also, there is no indication that a reply is sent to the organizer (host) when you decline or accept a meeting.
    There may be other cases which aren't handled, but I've only been on ActiveSync / Exchange 2007 for less than a day now, and I already notice these lame differences from the features in sync-via-USB/iTunes

    The calendar app is woefully inadequate for anything but the most rudimentary scheduling. Having used DateBk6 on the Palm platform for years, I suddenly feel like I'm back in nursery school trying to maintain my calendar/schedule with an orange crayon.
    And Apple got so much right with the iPhone that this is just glaring in its deficiencies. I can only imagine this was a 'rush to get it included' situation. I certainly can't imagine that anyone at Apple would be satisfied with this application. It doesn't even duplicate the functionality of Apple's own iCal, let alone any better calendar program.
    It is disappointing inasmuch as I usually look to Apple to take the lead in putting out high-quality applications.

  • Htaccess redirect not passing folder names

    Hello everyone.
    Cant figure this out... purpose is to rewrite all urls without a {www.} to have a {www.} exactly as they are elsewise.
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.deafboyzaudio\.com$
    RewriteRule ^(.*)$ http://www.deafboyzaudio.com/$1 [R=301,L]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
    RewriteRule index\.php$ http://www.deafboyzaudio.com/%1 [R=301,L]
    and it works fine except if i have something like
    deafboyzaudio.com/videoz/upload.php
    it redirects to
    www.deafboyzaudio.com/upload.php.
    how do i set it up so that it passes the folder name as well.  sometimes there are multiple.
    My site also uses a lot of url rewrite rules and modules etc behind the scenes.
    I want to solution that takes and duplicates the entire url and just adds a www. if it doesnt have it.
    thank you very much!

    ok i found a site that covers this...
    http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redire ct-via-htaccess
    the tech says to use
    RedirectMatch 301 (.*)\.asp$ http://www.example.com$1.php
    which basically changes the .asp to .php
    I modified it to change the non www to www, just guessing...
    RedirectMatch 301 deafboyzaudio\.com(.*)$ http://www.deafboyzaudio.com$1
    but NOPE, it still redirects to the same url just without the subfolder.
    I think i am just doing ti wrong because when i try to use the code provided to change the document type (.php) as in the example it works, and it KEEPS the directory structure.
    so i think im on the right track, just cant code it right...

  • Problem in .htaccess redirection setup

    Hello Friends,
    I am not sure weather this is appropriate place to raise this question or not.
    I have a website www.esparkinfo.com, It is in core PHP, I want to hide php extension and display html extension to my visitors and I did it by changing in .htaccess file.
    Below is the .htaccess code I used to access php file with .html extension
    RewriteRule ^(.*)\.html$ $1.php
    Now the problem is, I can access same file with both extensions like /services.php file access from /services.php and /services.html
    I want to set redirection to .html if visitor type .php extension but I am failed to do so, I have appplied many logic but it gives me "500 internal server error".
    I really apppriciate your suggestions and help.

    I am So Sorry Mr. Nitesh for that I also got same problem in my website cheap web design company, It is also core PHP, And I want to show html extension to my visitors.
    I also search the real logic for my website.

  • .htaccess redirect - help me php masters!

    I created some links incorrectly, links that can not be
    changed. My only hope is to redirect them to the correct pages
    using htaccess but I can't seem to figure it out. Heres what I need
    to do...
    Redirect:
    http://www.mysite.com/index.php?action=products&amp;id=1723
    To:
    http://www.mysite.com/index.php?action=products&id=1723
    Notice the "&amp;" in the first url vs "&" in the
    second one.
    I tried this but its not working:
    Redirect permanent /index.php?action=products&amp;id=1723
    http://www.mysite.com/index.php?action=products&id=1723
    Any help would be greatly appriciated.
    Thanks,
    J

    Still trying to figure it out. From what I've read it sounds
    like I would need to use modrewrite to accomplish this task but am
    still unable to figure out the solution.
    Here is the full scope of what I need to accomplish...
    1.
    http://www.mysite.com/index.php?action=products&amp;sub_action=details&amp;cat=63&amp;id=1 723
    ---needs to go to---
    http://www.mysite.com/index.php?action=products&sub_action=details&cat=63&id=1723
    2.
    http://www.mysite.com/index.php?action=products&amp;sub_action=details&amp;cat=299&amp;id= 1530
    ---needs to go to---
    http://www.mysite.com/index.php?action=products&
    sub_action=details&cat=299&id=1530
    3.
    http://www.mysite.com/index.php?action=products&amp;sub_action=details&amp;cat=135&amp;id= 361
    ---needs to go to---
    http://www.mysite.com/index.php?action=products&sub_action=details&cat=135&id=361
    4.
    https://www.mysite.com/index.php?action=products&sub_action=details&cat=154&id=462
    ---needs to go to---
    https://www.mysite.com/index.php?action=products&sub_action=details&cat=146&id=613
    1-3 needs to have all "&amp;" replaced with "&"
    4 is just the wrong link and needs to have the last 2
    parameters changed
    As always any help would be greatly appreciated!
    Thanks,
    J

  • HTTPURLConnection doesn’t work in the Portal

    Hi,
    We try to develop an web service on the SAP Portal 7.0 SP11, and we have the following behavior.
    If we implement the following code through java console this works fine.
    URL url = new URL("https://server/info?A030=M005&A001=2=0&C001=0");
    System.out.println("Connecting to Host : [" + url.getHost() + "]");
    System.setProperty("javax.net.ssl.keyStore", "2796.p12");
    System.setProperty("javax.net.ssl.keyStorePassword", "PASSWORD");
    System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.setDoOutput(false); // true for POST, false for GET
    connection.setDoInput(true);
    connection.setRequestMethod("GET");
    connection.setUseCaches(false);
    connection.setAllowUserInteraction(true);
    String aLine = null;
    InputStreamReader inReader = new InputStreamReader(connection.getInputStream());
    BufferedReader aReader = new BufferedReader(inReader);
    while ((aLine = aReader.readLine()) != null)
         System.err.println(aLine);
    aReader.close();
    And, if we goes to an AbstractPortalComponent we have problems to connect to an https web site.
    The application returns this errors
    org.w3c.www.protocol.http.HttpException: Unable to contact target server
         iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure#
         at iaik.security.ssl.r.f(Unknown Source)#
    Any ideas,
    Jorge Neves

    Hi Jorge,
    the portal offers you the com.sap.portal.ivs.httpservice.
    no javadoc, but you find it here...
    usrsap[instance]JC[sysNr]j2eeclusterserver0appssap.comirjservlet_jspirjrootWEB-INFportalportalappscom.sap.portal.ivs.httpservice
    maybe you try this way to create your connection.
    Greetings Jens

  • Machine doesn't handle Mavericks with current setup, but does with fresh setup

    I have a MacBook Pro 2.4Ghz Intel Core i7 with 8 GB Ram and when I upgraded to Mavericks my machine began to crawl. The biggest thing I noticed is Mail would take about 10minutes to launch and daily my machine would tell me I've used up all memory and need to reboot, and the fan is constantly running. None of this ever happened until the day I upgraded.
    So I did a full backup and started from new, things work great, but I've realized it's too big of a hassel to not have my prefrences, applications, etc. I've now gone back to my old setup (complete with slow mail, fan running constantly, etc) but I am wondering is there some type of a program that I need to run to get rid of any bugs or something similar?
    I know my machine can run on Mavericks, but doesn't want to with this current set up. Any ideas?
    Thanks in advance for you help!
    Michael

    You need to find out what it is that is dragging it down.
    You can look at Activity Monitor to see if there is something using a lot of CPU.
    Also, look in Console for lots of repeating errors, especially throttling and respawn.
    Boot into Safe Mode and see how it runs. Not that some things will not work in Safe Mode, and you cannot boot to safe mode with FileVault2 enabled or a Fusion drive.
    http://support.apple.com/kb/HT1564
    If it works ok in Safe Mode, it is a startup item that is causing the problems.

  • ISE doesn't remove URL redirect

    We have an ISE problem, in that the URL redirect sent to the access switch for guest auth is not removed even after successful authentication.
    Debug shows RADIUS activity as normal, 802.1X failover to MAB, then rediect to webauth;
    003064: Aug 22 17:48:08.340: %AUTHMGR-5-START: Starting 'mab' for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007201857889
    003065: Aug 22 17:48:08.365: %MAB-5-SUCCESS: Authentication successful for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007201857889
    003066: Aug 22 17:48:08.365: %AUTHMGR-7-RESULT: Authentication result 'success' from 'mab' for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007201857889
    003067: Aug 22 17:48:08.382: %EPM-6-POLICY_REQ: IP 0.0.0.0| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007201857889| AUTHTYPE DOT1X| EVENT APPLY
    003068: Aug 22 17:48:08.390: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.60.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007201857889| AUTHTYPE DOT1X| POLICY_TYPE URL Redirect| POLICY_NAME
    https://ukhatfnac0001.dtukad.local:8443/guestportal/gateway?sessionId=C0A8D60D0000007201857889&action=cwa
    | RESULT SUCCESS
    NWS-TSL-HATB3F3-DistSW1#
    003069: Aug 22 17:48:08.390: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.60.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007201857889| AUTHTYPE DOT1X| POLICY_TYPE URL Match ACL| POLICY_NAME web_guest_redirect| RESULT SUCCESS                                                                                                                 
    003138: Aug 22 18:01:18.718: %AUTHMGR-5-SUCCESS: Authorization succeeded for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007401914245
    000054: Aug 22 18:01:18.345: %AUTHMGR-5-VLANASSIGN: VLAN 1040 assigned to Interface Gi1/0/4 AuditSessionID C0A8D60D0000007401914245 (NWS-TSL-HATB3F3-DistSW1-2)
    003139: Aug 22 18:01:19.490: %EPM-6-IPEVENT: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| EVENT IP-ASSIGNMENT
    003140: Aug 22 18:01:19.490: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| POLICY_TYPE Named ACL| POLICY_NAME xACSACLx-IP-PERMIT_ALL_TRAFFIC-4f57e406| RESULT SUCCESS
    NWS-TSL-HATB3F3-DistSW1#
    003141: Aug 22 18:01:19.515: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| POLICY_TYPE URL Redirect| POLICY_NAME
    https://ukhatfnac0001.dtukad.local:8443/guestportal/gateway?sessionId=C0A8D60D0000007401914245&action=cwa
    | RESULT SUCCESS
    003142: Aug 22 18:01:19.515: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| POLICY_TYPE URL Match ACL| POLICY_NAME web_guest_redirect| RESULT SUCCESS  
    003064: Aug 22 17:48:08.340: %AUTHMGR-5-START: Starting 'mab' for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007201857889
    003065: Aug 22 17:48:08.365: %MAB-5-SUCCESS: Authentication successful for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007201857889
    003066: Aug 22 17:48:08.365: %AUTHMGR-7-RESULT: Authentication result 'success' from 'mab' for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007201857889
    003067: Aug 22 17:48:08.382: %EPM-6-POLICY_REQ: IP 0.0.0.0| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007201857889| AUTHTYPE DOT1X| EVENT APPLY
    003068: Aug 22 17:48:08.390: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.60.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007201857889| AUTHTYPE DOT1X| POLICY_TYPE URL Redirect| POLICY_NAME https://ukhatfnac0001.dtukad.local:8443/guestportal/gateway?sessionId=C0A8D60D0000007201857889&action=cwa
    | RESULT SUCCESS
    NWS-TSL-HATB3F3-DistSW1#
    003069: Aug 22 17:48:08.390: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.60.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007201857889| AUTHTYPE DOT1X| POLICY_TYPE URL Match ACL| POLICY_NAME web_guest_redirect| RESULT SUCCESS          
    Then after successful authentication, VLAN is moved and xACSACLx-IP-PERMIT_ALL_TRAFFIC is sent, but rediect is sent again from ISE. We've been over configs several times, but can't get to the bottom of this. Can anyone shed any light ?
    003138: Aug 22 18:01:18.718: %AUTHMGR-5-SUCCESS: Authorization succeeded for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000007401914245
    000054: Aug 22 18:01:18.345: %AUTHMGR-5-VLANASSIGN: VLAN 1040 assigned to Interface Gi1/0/4 AuditSessionID C0A8D60D0000007401914245 (NWS-TSL-HATB3F3-DistSW1-2)
    003139: Aug 22 18:01:19.490: %EPM-6-IPEVENT: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| EVENT IP-ASSIGNMENT
    003140: Aug 22 18:01:19.490: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| POLICY_TYPE Named ACL| POLICY_NAME xACSACLx-IP-PERMIT_ALL_TRAFFIC-4f57e406| RESULT SUCCESS
    NWS-TSL-HATB3F3-DistSW1#
    003141: Aug 22 18:01:19.515: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| POLICY_TYPE URL Redirect| POLICY_NAME https://ukhatfnac0001.dtukad.local:8443/guestportal/gateway?sessionId=C0A8D60D0000007401914245&action=cwa| RESULT SUCCESS
    003142: Aug 22 18:01:19.515: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000007401914245| AUTHTYPE DOT1X| POLICY_TYPE URL Match ACL| POLICY_NAME web_guest_redirect| RESULT SUCCESS                                                                                                           

    Fixed it !
    Great info from Tarik above, which lead me to the issue. My authz policy for redirect didn't include the Network Access:Usecase=Host Lookup, so this policy still (incorrectly) remained =true after valid guest authentication. As this policy remained =true, ISE was correctly applying URL rediect. Once I sorted the policy, by adding ...AND Network Access:Usecase=Host Lookup, all wored as expected.
    After valid guest auth we now see DACL 'PERMIT_GUEST' and move to VL1040 as expected, without the URL rediect.
    003543: Aug 22 19:03:15.169: %EPM-6-POLICY_REQ: IP 192.168.60.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| EVENT APPLY
    003544: Aug 22 19:03:15.186: %EPM-6-AAA: POLICY xACSACLx-IP-PERMIT_GUEST-50350e3a| EVENT DOWNLOAD-REQUEST
    003545: Aug 22 19:03:15.354: %EPM-6-AAA: POLICY xACSACLx-IP-PERMIT_GUEST-50350e3a| EVENT DOWNLOAD-SUCCESS
    003546: Aug 22 19:03:15.354: %EPM-6-IPEVENT: IP 0.0.0.0| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| EVENT IP-WAIT
    NWS-TSL-HATB3F3-DistSW1#  
    003547: Aug 22 19:03:15.849: %AUTHMGR-5-SUCCESS: Authorization succeeded for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000008501C99767
    000069: Aug 22 19:03:15.241: %AUTHMGR-5-VLANASSIGN: VLAN 1040 assigned to Interface Gi1/0/4 AuditSessionID C0A8D60D0000008501C99767 (NWS-TSL-HATB3F3-DistSW1-2)
    NWS-TSL-HATB3F3-DistSW1#  
    003548: Aug 22 19:03:17.560: %EPM-6-IPEVENT: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| EVENT IP-ASSIGNMENT
    003549: Aug 22 19:03:17.560: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| POLICY_TYPE Named ACL| POLICY_NAME xACSACLx-IP-PERMIT_GUEST-50350e3a| RESULT SUCCESS
    003543: Aug 22 19:03:15.169: %EPM-6-POLICY_REQ: IP 192.168.60.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| EVENT APPLY
    003544: Aug 22 19:03:15.186: %EPM-6-AAA: POLICY xACSACLx-IP-PERMIT_GUEST-50350e3a| EVENT DOWNLOAD-REQUEST
    003545: Aug 22 19:03:15.354: %EPM-6-AAA: POLICY xACSACLx-IP-PERMIT_GUEST-50350e3a| EVENT DOWNLOAD-SUCCESS
    003546: Aug 22 19:03:15.354: %EPM-6-IPEVENT: IP 0.0.0.0| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| EVENT IP-WAIT
    NWS-TSL-HATB3F3-DistSW1#  
    003547: Aug 22 19:03:15.849: %AUTHMGR-5-SUCCESS: Authorization succeeded for client (0026.b9a6.dd90) on Interface Gi1/0/4 AuditSessionID C0A8D60D0000008501C99767
    000069: Aug 22 19:03:15.241: %AUTHMGR-5-VLANASSIGN: VLAN 1040 assigned to Interface Gi1/0/4 AuditSessionID C0A8D60D0000008501C99767 (NWS-TSL-HATB3F3-DistSW1-2)
    NWS-TSL-HATB3F3-DistSW1#  
    003548: Aug 22 19:03:17.560: %EPM-6-IPEVENT: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| EVENT IP-ASSIGNMENT
    003549: Aug 22 19:03:17.560: %EPM-6-POLICY_APP_SUCCESS: IP 192.168.40.10| MAC 0026.b9a6.dd90| AuditSessionID C0A8D60D0000008501C99767| AUTHTYPE DOT1X| POLICY_TYPE Named ACL| POLICY_NAME xACSACLx-IP-PERMIT_GUEST-50350e3a| RESULT SUCCESS

Maybe you are looking for

  • SAP Report Painter (Drill down)

    Hi, SAP Experts, I'm Henry. This is my first post on SCN. I'm trying to solve a problem on drill down report of report painter. I don't have much experiences. I really need your help.  The problem is that I developed one report painter (Balance Sheet

  • I'm trying to sync my IPad to new PC

    Hi, I'm trying to sync my IPad 2 to my new PC.  I have downloaded ITunes, but when I try to sync Music & Photos, I get a message saying that as the IPad has been synced to another PC, I will lose all music on my IPad if I continue.  Can anyone advise

  • Running windows 7 64 I get this error from downloader.exe The procedure entry point ?GetRegisterInfo@@GXPADHOH@Z could not be located in the dynamic link library transport_dll.dll

    I keep getting this message from downloader.exe running Windows 7 64 bit O/S each time I start Firefox 3.6.9. The procedure entry point ?GetRegisterInfo@@GXPADHOH@Z could not be located in the dynamic link library transport_dll.dll. I have uninstalle

  • Higher End Usage for Airport Network

    Greetings... I am creating a wireless network for my company of which there are roughly 40 users who will be using it intermittently. In order to cover the area I have, I installed 3 Airport Extreme (new ones), gave them all the same wireless network

  • Key in use for cod4

    Hello, I just bought COD4 throught the appstore. Now if i want to play a multiplayer game the game says the Key is already in use. Does anyone have the same problem, if so please explain me how to solve this.