I'm confused a bit about a few issues. Is your code being called from the same machine as the server? Does your server use port 7777 for its http service? What is the status code you are receiving...