Downloading an Captcha Image generated by a .NET/ASP Site
I'm working on scraping a site that is generated by by a .NET/ASP system which generates a captcha on some pages, but I am having difficulty actually downloading the Captcha.
When I try to download the file via the downloadFile method, I get a 'circular redirect' error to a site that is basically the same as the url I put in with ":443" affixed to the end of the domain (the site uses https). I am pretty sure that I am generating the url properly. The link to the captcha image is of the form: "CaptchaImage.aspx?guid=" and when I right-click on the link in Firefox and click "Copy Link Address," I can paste it into another tab and see the same captcha image. However, it does not work in Screen-Scraper.
I found this forum topic: http://community.screen-scraper.com/node/1424, but can't figure out what I'm supposed to do with the response from the getContentAsString() method.
Since it looks like you don't
Since it looks like you don't have any POST parameters to request the image, you should be able to just use session.downloadFile().
I could make a script that will compose the whole path to the image, write it to the log, then try to download the image. When you do that, get the URL from the log, and compare to what you see on the site. Odd are that your request just needs some tweaking to match theirs.