Archive for the ‘Code’ Category

POSTing to a webpage and using it’s response (HttpWebRequest and HttpWebResponse)

20 Dec 2006

You might encounter a situation where you need to Post to a web page and read it’s response.
Here’s a function that uses System.Net.HttpWebRequest and System.Net.HttpWebResponse to do just that.

”Usage’ Dim xmlDoc As Xml.XmlDocument’ xmlDoc.Load(MakeHttpRequest(”request=listPersons&filter=last(a*)”,” [...]

More »

Brain Teaser: What Does This JavaScript Do?

5 Jan 2006

JavaScript is one of those technologies that you can use for years knowing only very little about it.  Do you know what the following <script> block will do?  Post your guess as a comment before you test it out!
<script>
(function() { [...]

More »