Socket User-Agent?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
bradshaw1965
Posts: 98
Joined: March 14th, 2006, 2:16 pm
Location: Atlanta, GA
Contact:

I've been playing with the Socket object and the User-Agent seems to be "-" which just may be my version of Apache's version of Null. Has anybody worked with changing this info to be a better citizen in web service consumption?

The object doesn't seem to be open to much introspection.

Best,

Dale
Dale Bradshaw
Technology Director | Primal Screen
creative-workflow-hacks.com
Atlanta, GA
bradshaw1965
Posts: 98
Joined: March 14th, 2006, 2:16 pm
Location: Atlanta, GA
Contact:

hey folks,

Following up with an answer to my own question. Since we can craft the GET or POST request line by line. The User-Agent is simply a line in the request, like so.

Code: Select all

webConnect.write('GET /socketDemo/sampleProject.json HTTP/1.0  \nUser-Agent: OurFantasticWebService\n\n');
Best,

Dale
Dale Bradshaw
Technology Director | Primal Screen
creative-workflow-hacks.com
Atlanta, GA
Post Reply