
Full-stack Developer, Crypto Enthusiast 💎 Founder of @metaoutdoor, @unihackio 🧑🏻💻 Vanlife, Adventure Travel, Adrenaline 🏂
- Tweets1.2K
- Following626
- Followers404
- Likes2K

ALT I have a web robot which is a Java app. I need to be able to set the User-Agent field in the HTTP header in order to be a good net citizen (so people know who is accessing their server). Anyone have any ideas? Right now, Java sends a request that includes something like: User-Agent: Java/1.Obeta2 I'd rather not rewrite all the HTTP stuff myself. I tried just searching in the JDK for the Java/1.Obeta2 figuring I could just change the string, but I couldn't find it. Perhaps it is stored as a unicode String? An easy method of setting the User-Agent field should probably be added to Java, so people can properly identify their programs. Thanks, Larry Page

























