Spoof user agent with GET /test.php HTTP/1.1 from socket?
===

I'm working on a tool that reads and executes html/javascript documents from a web server.
I use the RFC2817Socket (because i'm connection through a proxy) and send requests using  writeUTFBytes and displaying the page in a HTMLLoader (loadString); So far so good.
My question now, is there a way to spoof the user agent ? So even if i connect to the webserver via a proxy and send my request, i would like to be able to change the user agent to whatever i want.


    _proxy.writeUTFBytes('GET /test.php HTTP/1.1\r\n');
    _proxy.writeUTFBytes('Host: xx.xx.xx.xx:xx\r\n');
    _proxy.writeUTFBytes('Connection: Keep-alive\r\n\r\n');
    _proxy.flush();

