Note that you don't need to send actual 4 GB to test it. If you sent http headers (and maybe a chunk of data), it should be enough. We have an emulated server in tests that you could use. open_socket_request() will probably be useful.
the return from HttpQueryInfo is separate from being able to download a huge file. i'll separate them
thanks daniel