WinHttp.WinHttpRequest.5.1 Content-Length 0

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pelegk1
Forum Newbie
Posts: 9
Joined: Tue Aug 31, 2004 12:30 am

WinHttp.WinHttpRequest.5.1 Content-Length 0

Post by pelegk1 »

i am calling a php page using WinHttp.WinHttpRequest.5.1
and i recive that the Content-Length of the file is 0
why is that?
thnaks in advance
peleg
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

Because your php page didn't output (print/echo/HTML) anything.
Call the same script from your browser with the same parameters and see what happens.
Posting the code might also help ;)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Also, are you using onReadyStateChange (or whatever that nonsense is)?

Using jquery's ajax library might be useful for you.
Post Reply