Results 1 to 5 of 5

Thread: ExtDirect zero total bytes in request from Internet Explorer

  1. #1
    Ext JS Premium Member
    Join Date
    Aug 2009
    Posts
    133

    Default ExtDirect zero total bytes in request from Internet Explorer

    Good afternoon,

    I have a problem with Internet Explorer explained in this post (see below) about posting data from a authenticated section of the site to an non-authenticated section of the site which as far as I can tell results in the total bytes in the ext.direct message to be zero length

    The issue was introduced intentionally as a hot fix for IE http://support.microsoft.com/?kbid=831167

    The browser will not send POST data once moving from an authenticated location on a server to a non-authenticated location on that server until re-authenticated.

    People (http://www.websina.com/bugzero/kb/browser-ie.html) have noted that if you send a 401 status (Unauthorized) that this will reset the browser, resolving this issue.
    I have added a bunch of debugging messages into my implementation of the DirectHandler and am seeing the behavior described above.

    Code:
    DirectHandler 2010-08-03 12:23:51,882 DEBUG [11] - DirectHandler processing request for session (ohqpoturhmg44f45wfyadj45): prinicpal "aolive" in application domain: /LM/W3SVC/6/ROOT-2-129253260092256470
    DirectHandler 2010-08-03 12:23:51,883 DEBUG [11] - cookie: "ASP.NET_SessionId", expires: "1/1/0001 12:00:00 AM", secure: False
    DirectHandler 2010-08-03 12:23:51,883 DEBUG [11] - cookieValue: "" = "ohqpoturhmg44f45wfyadj45"
    DirectHandler 2010-08-03 12:23:51,883 DEBUG [11] - cookie: ".FACTSNETAUTH", expires: "1/1/0001 12:00:00 AM", secure: False
    DirectHandler 2010-08-03 12:23:51,883 DEBUG [11] - cookieValue: "" = "A6B3A2D524BD093F3C5A78B6917E43F7EFED16D0B03B0800EEC8D1B71AFEA2B85722EB974B549CCCEE0FDA81A1BB59BAC03190D2855B4E4ABD2CD2009B25C4317999BD43292510EEF2C68F5B21ED66299B134B869382EF910EC89C5EE59EBD2C97CF290D0332405D71BEDA85031DD400"
    Ext.Direct.DirectProcessor 2010-08-03 12:23:51,883 DEBUG [11] - Executing step 1
    Ext.Direct.DirectProcessor 2010-08-03 12:23:51,883 DEBUG [11] - Executing step 2
    Ext.Direct.DirectProcessor 2010-08-03 12:23:51,883 DEBUG [11] - Executing step 12
    Ext.Direct.DirectProcessor 2010-08-03 12:23:51,883 DEBUG [11] - Executing step 13
    Ext.Direct.DirectProcessor 2010-08-03 12:24:21,892 DEBUG [11] - Executing step 13.1
    Ext.Direct.DirectProcessor 2010-08-03 12:24:21,893 DEBUG [11] - httpRequest.TotalBytes "0"
    Ext.Direct.DirectProcessor 2010-08-03 12:24:21,893 DEBUG [11] - httpRequest.contentLength "362"
    Ext.Direct.DirectProcessor 2010-08-03 12:24:21,893 DEBUG [11] - Executing step 13.3
    Ext.Direct.DirectProcessor 2010-08-03 12:24:21,893 DEBUG [11] - Executing step 14
    Ext.Direct.DirectProcessor 2010-08-03 12:24:21,893 DEBUG [11] - json "
    Additionally once I use Fiddller2 the behavior is not exhibited

    This behavior only happens when using Internet Explorer and does not happen when using any other browser.

    How do I get around this or has anyone else experienced this issue.

    Thanks in advance.

    Whatty

  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2009
    Posts
    133

    Default

    I understand that this behavior does not occur when using a GET request - how can I change the DirectStore to use a GET request

    Thanks in advance.

    Whatty

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    You can specify method:'GET' for each action in your api.

  4. #4
    Ext JS Premium Member
    Join Date
    Aug 2009
    Posts
    133

    Default

    Just to be 100% clear if I change the API from

    Code:
    Ext.app.REMOTING_API = {"type":"remoting","url":"/Web/asp/DirectHandler.ashx","actions":{"ChangePasswordActionImpl":[{"name":"changePassword","len":1,"formHandler":true}]}};
    to:

    Code:
    Ext.app.REMOTING_API = {"type":"remoting","url":"/Web/asp/DirectHandler.ashx","actions":{"ChangePasswordActionImpl":[{"name":"changePassword","len":1,"formHandler":true,"method":"GET"}]}};
    that it should result in a GET request

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    45

    Default

    Dear Whatty,

    I followed your instruction not work Direct still request to server as HTTP POST.

    Regards,

Similar Threads

  1. [SOLVED]Internet Explorer cannon open the Internet site
    By eyuwang in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 26 Nov 2008, 4:43 PM
  2. Replies: 0
    Last Post: 18 Nov 2008, 10:38 AM
  3. Problems with Internet Explorer
    By djfloetic in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 20 Jul 2007, 10:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •