Monthly Archives: October 2005

Sending an HTTP POST request to a web server

ASCIIEncoding encoding = new ASCIIEncoding(); string post_url = “http://172.16.24.44/postdata.php”; string poststring = “monkeys=blue\&trousers=black”; byte[] data = encoding.GetBytes(poststring); HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(post_url); httpRequest.Method = “POST”; httpRequest.ContentType=”application/x-www-form-urlencoded”; httpRequest.ContentLength = data.Length; Stream newStream=httpRequest.GetRequestStream(); newStream.Write(data,0,data.Length); newStream.Close(); HttpWebResponse response = (HttpWebResponse)httpRequest.GetResponse (); Stream receiveStream = … Continue reading

Posted in C# Snippets | Comments Off

FlyakiteOSX – Modify . Simplify . Aquafy

FlyakiteOSX is a “skin” for Win XP to emulate the look and feel of OSX. Not only is the idea a cool one, but their website is modelled on that same OS. Well worth a look, if only for the … Continue reading

Posted in General | Comments Off