and also responseText will contain some value only if you return something in the response stream..
Main Topics
Browse All TopicsHowdy folks. This one is driving me demented. I have no idea what is going on.
See the code below. When the ready state = 4, the status = 0, the statusText = "OK" and the responseText is blank.
I've googled until my fingers are numb, but I'm getting no clues.
The "gogetit" function is invoked from a button click but I don't think that really matters.
What's goin' on?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
> and also responseText will contain some value only if you return something in the response stream..
I'm just pointing it at a random (well, not THAT random - MY) site. If you type www.carobit.com in your browser's address bar, you see a web page being displayed. Are you saying that responseText doesn't necessarily contain what you would get if you right-clicked and checked the source of that page?
If so, is there another way of getting THAT information?
Oh, and no. Changing the logic didn't make any difference. How could it have? (Having said that, I once had a rather intractable problem in VB6 with a third party component that returned a boolean value that was neither "true" nor "false". I'm not kidding but it's outside the scope of this question).
okaaaaaayyyyyyy.....
The plot thickens. I just created a wee little VB6 proggie. And here's the code in that:
Dim oXHTTP As XMLHTTP60
Set oXHTTP = New XMLHTTP60
oXHTTP.open "get", "http://www.carobit.com", False
oXHTTP.send
MsgBox oXHTTP.responseText
Note how I'm doing the request synchronously, but it doesn't make any difference whether I do it synchronously or not. If I do it asynchronously I just need to check the readyState and all that palaver.
Being that as it may be, the code is doing exactly the same thing, for exactly the same site ...
... and it works fine.
Riddle me that.
Here's the rub though: I am starting to suspect that this may be a SECURITY measure, stopping one web page from doing client side HTTP requests to a different server. If that's the case, I may as well abandon my perfect plan.
Drat and double drat. Drat I tells ya. DRAT.
Business Accounts
Answer for Membership
by: kadabaPosted on 2009-10-29 at 20:26:55ID: 25700023
check it the other way round
Select allOpen in new window