12 KiB
created_at | title | url | author | points | story_text | comment_text | num_comments | story_id | story_title | story_url | parent_id | created_at_i | _tags | objectID | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2009-10-06T01:32:44.000Z | "How do I set the User-Agent string in Java?" - L. Page (1996) | http://guyro.typepad.com/blog/2008/12/google-i.html | frisco | 173 | 39 | 1254792764 |
|
863284 |
Spinning Guyro: Google & I
Spinning Guyro
Spinning the Web 2.0
Guy Rosen's blog
About
- My name is Guy Rosen and I'm a technology veteran and future serial entrepreneur :-). Currently working on a venture in the cloud computing space, I blog about interests of topics for technology, entrepreneurship, productivity, social networking, cloud computing and more.
- Follow me on Twitter @guyro:
Favorites
- Technotheory
- Lifehacker
- Instigator Blog
- Paul Graham
- Collective Thoughts
- Web2.0 Wonders
- Publishing 2.0
- On Startups
- De Gardener
- Online Circus
December 08, 2008
Google & I
I was brushing off my Java skills the other day. It's been a little while and I ran into a task I could not, from memory, recall how to write. So I turned to Google and quickly came up with this post from 1996(!) on the subject:
` From: Lawrence Page
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.0beta2
I'd rather not rewrite all the HTTP stuff myself. I tried just searching in the JDK for the Java/1.0beta2 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 `
Hmm, I wonder what kind of "web robot" this Larry Page was working on and hope his project was successful!
Does it bode well for me that I ran into the same question?
Posted at 12:17 AM | Permalink
Comments
You can follow this conversation by subscribing to the comment feed for this post.
That's awesome. I always love these things, where it's like "before they were stars".
Good stuff!
Posted by: John Rockefeller | December 08, 2008 at 04:32 AM
good
Posted by: rajaash | December 08, 2008 at 07:19 AM
Haha Larry Page lit your ass up with some napalm!
Feel the burn my niggas.
Posted by: Ibod Catooga | December 08, 2008 at 09:57 AM
Only that Google used Python for its robots.
Posted by: Cristian | December 08, 2008 at 05:32 PM
This shows how the leaps of men are sometimes made off others shoulders.
Posted by: Sean | December 09, 2008 at 06:51 AM
Haha - That's brilliant! Great find! :D
Posted by: Michael Martin | December 12, 2008 at 04:00 AM
All Google crawlers are python based. Especially the crawlers.
Posted by: Scott | December 20, 2008 at 07:36 AM
I questioning the legitimacy of the post since both the question and response are dated exactly 3am.
Posted by: EW | January 01, 2009 at 10:57 PM
@BW - interesting find. Poking around a bit I can see that most if not all all old Usenet posts from that period have a date header and not a time (as can be seen in the raw message). Apparently the standards of 1996 did not demand a time field.
So, Google Groups simply set 0:00 (PST) as the time when importing the old Usenet archives. You see 3am because you're on EST.
Posted by: Guy Rosen | January 02, 2009 at 12:48 AM
I guess Larry Page switched to Python after getting frustrated with Java.
Posted by: Nico | October 06, 2009 at 07:15 AM
An easy method of setting the User-Agent field should probably be added to Java, so people can properly identify their programs. I am also interested on the web robot that Larry Bode had set-up. Hope he was able to complete it and make it available for critic. Nice work.
Posted by: Woody Smith | September 10, 2011 at 05:02 AM
I think the thing has been resolved already. Its been quite a year now. I wonder if Larry Page has still confusion on the Java thing now.
Posted by: Keyword Tool | September 22, 2011 at 10:45 AM
The comments to this entry are closed.
Subscribe by RSS
Subscribe by Email
- Enter your email address:
Recent Posts
- Email Greetings In Multiple Languages
- The Multivariable Startup Equation
- How Many Sites Really Use Amazon EC2?
- Email In The Cloud - Not Just For Startups
- What Is Cloud Computing?
- Doing the Impossible
- HostMonk - our new hosting comparison service
- Multiple Profiles for TweetDeck - Introducing MultiTweetDeck
- Keep Your Arms And Legs Inside The Ride At All Times
- How Not To Search For Blogs
Archives
- September 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
n n
n'; var entryPermalink = "http://guyro.typepad.com/blog/2008/12/google-i.html"; var inlineReply = document.createElement("div"); var commentFooterLinks; var commentHeader; var commentReplyXID; var commentReplyAuthor; var commentReplyComplete; var inlineReplyLoaded = 0; var commentFormNum = undefined; /* Deprecated but still exists in advanced template sets, so must be defined / function xidToCommentPermalink (entryUrl, xid) { return entryUrl + "?cid=" + xid + "#comment-" + xid; } / Deprecated advanced template functions */ function handleSubmit() { return true; }; function handleChange() { return true; }; document.write(unescape("%3Cscript src='" + (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js'%3E%3C/script%3E")); COMSCORE.beacon({ c1: 2, c2: "6035669", c3: "", c4: "http://guyro.typepad.com/blog/2008/12/google-i.html", c5: "", c6: "", c15: "" });