OK~ Thanks for your response! I've posted this issue on the Apple Developer forum.
By the way, many thanks for your reply in the http proxy server discussion and explain how Connect Proxy works. I've learned a lot from the implementation process, and find this piece of code really clever!