Hi all,

Apologies if I am missing something fundamental but I am not having
any luck setting the user agent string of my URL connection to a web
site I am trying to invoke.

Here is my code:
URL u = new URL("http://hokiesuns.appspot.com/echorequest";);
HttpURLConnection uConn = (HttpURLConnection)u.openConnection();
uConn.setRequestProperty("User-Agent", "MyAgent");

If you access that URL, it will simply print the user agent of the
request and I always see:
"AppEngine-Google; (+http://code.google.com/appengine; appid:
s~hokiesuns)" (Since my app is hokiesuns and I am invoking from that)

I have read that it's possible to set the user agent and I double
checked the spelling from the HTTP spec, am I missing something?

Thanks
Amit

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to