I dont think "resolve" is needed. Please try to keep conditional and loop constructions as easy as possible. For example, this block could be switch to 

```ruby
			print_status("Resolving #{uri}?feed=rss2 to locate wordpress feed...")

			res = send_request_cgi({
				'uri'    => "#{uri}?feed=rss2",
				'method' => 'GET'
				})

			count = datastore['NUM_REDIRECTS']

			while res and (res.code == 301 || res.code == 302) and res.headers['Location'] and count != 0
				vprint_status("Web server returned a #{res.code}...following to #{res.headers['Location']}")
				uri = URI(res.headers['Location']).path
				res = send_request_cgi({
					'uri'    => "#{uri}",
					'method' => 'GET'
				})
				count = count - 1
			end

```