Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. HttpOpenRequest failed in IE9

HttpOpenRequest failed in IE9

Scheduled Pinned Locked Moved ATL / WTL / STL
jsonannouncement
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    am 2009
    wrote on last edited by
    #1

    I am calling HttpOpenRequest API in BHO code. Which is works correctly in IE6,IE7 and IE8. But HttpOpenRequest failed on IE9. I am calling it as d_hHTTPRequest=::HttpOpenRequest(d_hHTTPConnection, "GET", // HTTP Verb a_szURI, // Object Name "HTTP/1.0", // Version "", // Reference &szAcceptType, // Accept Type dwFlag, 0); // context call-back point Is there any change required for IE9 while using HttpOpenRequest API.

    G 1 Reply Last reply
    0
    • A am 2009

      I am calling HttpOpenRequest API in BHO code. Which is works correctly in IE6,IE7 and IE8. But HttpOpenRequest failed on IE9. I am calling it as d_hHTTPRequest=::HttpOpenRequest(d_hHTTPConnection, "GET", // HTTP Verb a_szURI, // Object Name "HTTP/1.0", // Version "", // Reference &szAcceptType, // Accept Type dwFlag, 0); // context call-back point Is there any change required for IE9 while using HttpOpenRequest API.

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      you might find you get a better result if you explains this

      am 2009 wrote:

      But HttpOpenRequest failed on IE9

      a bit more - what was the failure/how did it manifest itself (etc) ... oh, and, please put code inbetween the correct tags to make it more readable - <pre> </pre> or simply use 'code block' from the message editor 'g'

      A 1 Reply Last reply
      0
      • G Garth J Lancaster

        you might find you get a better result if you explains this

        am 2009 wrote:

        But HttpOpenRequest failed on IE9

        a bit more - what was the failure/how did it manifest itself (etc) ... oh, and, please put code inbetween the correct tags to make it more readable - <pre> </pre> or simply use 'code block' from the message editor 'g'

        A Offline
        A Offline
        am 2009
        wrote on last edited by
        #3

        I am calling win32 HttpOpenRequest API in my ATL COM code. It failed when called HttpOpenRequest. This is ATL COM win32 windows application hence there is not any refereence of

        and

        tag.

        G 1 Reply Last reply
        0
        • A am 2009

          I am calling win32 HttpOpenRequest API in my ATL COM code. It failed when called HttpOpenRequest. This is ATL COM win32 windows application hence there is not any refereence of

          and

          tag.

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          am 2009 wrote:

          This is ATL COM win32 windows application hence there is not any refereence of

          I meant, when you post code on this forum for others to read, put it in the correct tags

          am 2009 wrote:

          It failed when called HttpOpenRequest

          so you have said - you still have not answered what error code it fails with - so no one here can help you since they cannot guess what is happening 'g'

          A 1 Reply Last reply
          0
          • G Garth J Lancaster

            am 2009 wrote:

            This is ATL COM win32 windows application hence there is not any refereence of

            I meant, when you post code on this forum for others to read, put it in the correct tags

            am 2009 wrote:

            It failed when called HttpOpenRequest

            so you have said - you still have not answered what error code it fails with - so no one here can help you since they cannot guess what is happening 'g'

            A Offline
            A Offline
            am 2009
            wrote on last edited by
            #5

            d_hHTTPRequest=::HttpOpenRequest(d_hHTTPConnection,"GET",a_szURI,HTTP_VERSION ," ",&szAcceptType,dwFlag,0);

            Above code is failed in IE9

            G 1 Reply Last reply
            0
            • A am 2009

              d_hHTTPRequest=::HttpOpenRequest(d_hHTTPConnection,"GET",a_szURI,HTTP_VERSION ," ",&szAcceptType,dwFlag,0);

              Above code is failed in IE9

              G Offline
              G Offline
              Garth J Lancaster
              wrote on last edited by
              #6

              you keep missing this VERY IMPORTANT POINT WHAT DID THE CODE FAIL WITH ? WHAT WAS THE ERROR CODE ??

              A 1 Reply Last reply
              0
              • G Garth J Lancaster

                you keep missing this VERY IMPORTANT POINT WHAT DID THE CODE FAIL WITH ? WHAT WAS THE ERROR CODE ??

                A Offline
                A Offline
                am 2009
                wrote on last edited by
                #7

                Hi, Actually i HttpOpenRequest() function failed, i,e. application crash,hence GetLastError() not called. Before caliing GetLastError() code crash. This is happened with only IE9. otherwise code runs correctly on IE7 and IE8.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups