Set proxy and user agent with external libraries?

I can’t tell anything without enough information. Please have a look at the following post: