Advertisement

09.18.2008 at 01:34PM PDT, ID: 23743930 | Points: 500
[x]
Attachment Details

Use ASP to scrape an image behind a page using basic authentication (not a form login)

Asked by Cerixus in Active Server Pages (ASP), Security Utilities

Tags:

I asked this in a different way, in different zones first: http://www.experts-exchange.com/Software/System_Utilities/Security/Q_23740282.html

But then found the WinHttpRequest function and thought I'd ask here in the ASP zone.  My current code is attached, but it just locks up IIS.  I'd really like to scrape this dynamic image from the netbotz camera.  Please help.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Dim objWinHttp
Dim strHTML
 
Set objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET", "http://netbotzipaddress/imgstreams/nbOwlEnc_0_CAMERA/VGA/campic.jpg"
objWinHttp.SetCredentials "username", "password", HTTPREQUEST_SETCREDENTIALS_FOR_PROXY
objWinHttp.Send
Response.Write "Status: " & objWinHttp.Status & " " & objWinHttp.StatusText & "<br />"
'strHTML = objWinHttp.ResponseText
Set objWinHttp = Nothing
[+][-]09.19.2008 at 08:56AM PDT, ID: 22522570

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2008 at 08:59AM PDT, ID: 22522609

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 10:51PM PDT, ID: 22611888

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.20.2008 at 10:13AM PDT, ID: 22759939

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628