My WordPress blog has not been showing up in the Google Blog Search so I decided to create a REST Client to ping it using their Google Blog Search Pinging Service API. I created that last week and ran it a few times to test it. Tonight I was pleased to find several of my blog posts showing up in the search results. I searched on the uncommon words “YouCloud” and “YouComment” and found my posts listed first.
I created my REST client using ASP.NET because that is my area of expertise. I could not find many examples of REST clients in ASP.NET but it is really just a matter of making a simple web request. Most developers would probably use PHP and CURL (Client URL Library Functions) which is very versatile in its ability to handle cookies, user agent strings, referrers, custom headers, and post fields. Hackers use CURL a lot because it can automate the process of sending web traffic. However ASP.NET is also capable of handling all aspects of making web requests and the Google Blog Search Pinging Service API is pretty simple. Below is my code for pinging the Google Blog Search: