Jump to content
Sign in to follow this  

[WebRequests] Getting an Image and saving it?

Recommended Posts


I'm trying to make an image scraper using web requests.

My question is using "GET", how would I save the image from that "GET"?


$tHTTP = ObjCreate("winhttp.winhttprequest.5.1") ; Creation of Web Request Obj

$tHTTP.Open("GET", "http://www.google.com/intl/en_ALL/images/logos/images_logo_lg.gif" , False) ; That's the image URL to get from
$tHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2008120122 Firefox/3.0.5") ; User Agent

$tHTTP.Send() ; Send nothing due to it's a GET, not POST

So, would I use the .responseText for something? So lost for this. All help appreciated! Thanks.


Share this post

Link to post
Share on other sites

Sorry I can't help, I suck with HTTPWrappers...

Though I can bump!

>: }


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this