Monday, November 24, 2003 11:37 PM
richard
Gods of Google, you honor me...
Google has graced me with a #5 hit on the search terms (order sensitive) “C# .NET blogs”. (BTW if you're reading this past late Nov/2003 - this probably won't be the case anymore). This puts me up there with Don Box, GotDotNet.com, MSDN and 4guysfromrolla...
... okay, so what, you rightly say? - sorry it's my first hit from the Google bong and now I know why Scoble is hooked. But seriously I wonder why C# .NET blogs works, but not just C# and blogs? Or .NET and blogs?
Okay, just so this isn't a gratuitous “look at me post” here's a link to Ryan gettin' all up in Steve Maine's post about Session and some C# code that will post a message to ICQ for you (I can just hear comic book guy now: “worst code sample, EVER“):
public
static void PostToICQ()
{
NameValueCollection postValues = new NameValueCollection(5);
postValues.Add("to", "7303628");
postValues.Add("from", "Richard");
postValues.Add("fromemail", “chadich@NyOaShPoAoM.com“);
postValues.Add("body", "Hello world!");
StreamWriter writer = new StreamWriter(Environment.CurrentDirectory + (DateTime.Today.Ticks) + ".html", false);
byte[] bodyData;
using(WebClient client = new WebClient())
{
bodyData = client.UploadValues(@"http://web.icq.com/whitepages/page_me/1,,,00.html?Uin=7303628&x=28&y=14", "POST", postValues);
writer.Write(Encoding.ASCII.GetString(bodyData));
writer.Close();
}
}