problem with the customized INTERNET_STATUS_CALLBACK function in IE10

66 views
Skip to first unread message

joseph

unread,
Oct 17, 2013, 5:53:16 AM10/17/13
to
Dear friends,

I am facing a problem in my INTERNET_STATUS_CALLBACK function when it works with IE10. In IE8 and IE9, there is no issues at all.

The problem is that when the IE10 browser tries to access a URL with HTTP 30x redirection response, that customized INTERNET_STATUS_CALLBACK function will cause the handle closing and page rendering failure. Even if that customized function does not contain any code logic.

I put a logging function in that customized INTERNET_STATUS_CALLBACK function and print out the result of GetLastError(), it shows the following:


httpproxy::hook_InternetOpenPreA#[Internet handle is being created, [access type=0], [lpszProxyName=(null)], [dwFlags=268435456]
httpproxy::hook_InternetOpenPostA#[Internet handle hr=0x00CC0004] is created, [access type=0], [lpszProxyName=(null)], [dwFlags=268435456], errorcode=0
httpproxy::hook_InternetConnectPreA#InternetConnect handle is being created under [hr=0x00CC0004] ---- Connect to (xxx.xxxx.xxx:443), username=(null), password=(null), service=3, flags=8388608, dwcontext=0x04E73CE8
httpproxy::hook_InternetConnectPreM#[hr=0x00CC0004] ---- Connect to (wtb.redbull.com:443) Prepare to set the callback ----dwContext:0x04E73CE8 errorcode=0
httpproxy::hook_InternetConnectPreM#[hr=0x00CC0004] ---- Connect to (xxx.xxxxx.xxx:443) s_iscIEstdCallBack(old:0x77463139, new:0x0FE3C3F0) ---- dwContext:0x00000000 errorcode=82263272
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC0004] | ctxt=0x04E73CE8 | status=60 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC0004] | ctxt=0x04E73CE8 | status=60 | errorcode=0
httpproxy::hook_InternetConnectPostA#InternetConnect handle is created under [hr=0x00CC0004] ---- connection handle [hr=0x00CC0008], error code=0.
httpproxy::hook_HttpOpenRequestPreA#[InternetConnect hr=0x00CC0008] ---- Request handle is being created(GET, /xxx/, (null)) [dwContext=0x04E73CE8] secure:0x00000001, keep-alive:0x00000001, errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC0008] | ctxt=0x04E73CE8 | status=60 | errorcode=18
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC0008] | ctxt=0x04E73CE8 | status=60 | errorcode=18
httpproxy::hook_HttpOpenRequestPostA#Request handle is created under InternetConnect handle [hr=0x00CC0008] ---- request handle [hr=0x00CC000C], [dwContext=0x04E73CE8], error code=18.
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=80 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=80 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=30 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=30 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=31 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=31 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=40 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=40 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=41 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=41 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=325 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=325 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=321 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=321 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC0004] | ctxt=0x000007BA | status=430 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC0004] | ctxt=0x000007BA | status=430 | errorcode=0
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=110 | errorcode=122
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=110 | errorcode=122
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=100 | errorcode=12017
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=100 | errorcode=12017
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=70 | errorcode=12017
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC000C] | ctxt=0x04E73CE8 | status=70 | errorcode=12017
httpproxy::IEP_ASync2StatusCallback#StatusCallback function started: [hr=0x00CC0008] | ctxt=0x04E73CE8 | status=70 | errorcode=12017
httpproxy::IEP_ASync2StatusCallback#StatusCallback function ended: [hr=0x00CC0008] | ctxt=0x04E73CE8 | status=70 | errorcode=12017


No idea why it caused the 122 memory error and the 12017 handle already closed exception. Also there is a strange status code 430 appears and there is no description in any document I could find to explain this status code. :(

Eager to know what has been changed in wininet library between IE9 and IE10.



Best Regards
Joseph

Reply all
Reply to author
Forward
0 new messages