Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9099739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:41:46+00:00 2026-06-17T00:41:46+00:00

EDIT: This question has changed as I have waited for an answer and done

  • 0

EDIT: This question has changed as I have waited for an answer and done external research. I’ve rephrased the title, and the question is really that I’m looking for an alternative to MSXML2 (even if it means writing socket code).
The original body of the question is left here for reference and to help people in the future who are doing similar searches.

In VBA, using MSXML2 object, is there a way to get access to the
streaming data while readyState = 3, as it comes in?

I am using the OnReadyStateChange method, but I don’t seem to have
access to responseText until readyState is 4. When readyState is 3,
there doesn’t seem to be any data.

Is there any way in VBA to have access to the HTTP streaming response
while it is coming in? Another method I could use in MSXML2, or a
better (free, distributable) object to use to make “AJAX” calls?

More information: If I try to read responseStream (or
responseText), the error description is:

The data necessary to complete this operation is not yet available.

Second edit, more information: This link basically says that this is
expected behavior in the INTERACTIVE (3) state:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms753800(v=vs.85).aspx

So I am definitely looking for the “is there any alternative?” answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:41:47+00:00Added an answer on June 17, 2026 at 12:41 am

    This is an old bit of code I wrote to reads chunks using the WinInet API, its not asynchronous but it exposes a read buffer after every 512 bytes (I added a Debug.Print “READ ” & lngTotalBytesRead to illustrate) – http://pastebin.com/6uMhkBUF

    From what I can remember it worked ok but I’ve had to un-mangle it a bit.

    • You will need to remove the calls to App. in HTTPGetUAString (This was VB6 originally) so just HTTPGetUAString = "MyThing" or the like.

    • If (lngContentLen = 0&) Then lngContentLen = (BUFF_LEN * DUMMY_BUFF_MULTIPLIER) is a left-over; you can delete the line. (Subsequently if lngContentLen is zero the size is unknown in advance)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit This question has gone through a few iterations by now, so feel free
Edit : This question has already been asked and answered, and I apparently am
EDIT: This question was initially too general, I think. So What I really need
Already checked this question but didn't answer. Background I have a fully functional RESTful
Edit This was a bug that has been fixed in https://github.com/threerings/playn/commit/137ce50dddd2716f84c38ec1568d7ae5a368434b . See Par
EDIT: changed the title. I didn't know it at the time but this is
This question has been asked before - but with no satisfying answer at all!
This is a bit of a hypothetical question that has sent me off down
Edit : Of the several extremely generous and helpful responses this question has already
edit This question is solved! Having something weird. I'm using html { font-size: 100%

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.