I don't have a clean example code snippet. You have to change your HTTP requests to go to the proxy server, passing the original URL as data. You can probably google up an example, or worst case, read the RFCs