I just ran your code and I got a complete HTML page back as response. It might be possible that when you were trying your script, the target web site might be having some problems of its own...and since there was no error checking being done in your code,well,network issues on the target side might have been the problem