A proxy when done right does not need you to change code. You use the same code but point your requests to the proxy IP address and port number. It's that simple.