Re: Grabbing web pages programmatically
From: Kaypee (kaypee_nz_at_hotmail.REMOVE.THIS.com)
Date: 02/29/04
- Next message: Klaus H. Probst: "Re: Passing Strings to C"
- Previous message: MikeD: "Re: running a PIF file for DOS application using CreateProcess"
- In reply to: TECH: "Re: Grabbing web pages programmatically"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 14:04:42 +1300
Ta Will give that a go
Kaypee
"TECH" <tversoft@tversoft.com> wrote in message
news:OGBtz3k$DHA.4080@TK2MSFTNGP09.phx.gbl...
> Kaypee,
>
> use WinHTTP instead of INET API - this is more secure, easier and way to
go
> according to Microsoft
>
> Dim m_HTTP As Object
> Dim m_Body As Variant
>
> Set m_HTTP = CreateObject("WinHTTP.WinHTTPRequest.5") '(or
> WinHTTP.WinHTTPRequest.5.1 )
> m_HTTP.Open "POST", "http://wwwwwwww/post.asp", False
> m_HTTP.SetRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
>
> m_Body = "searchquery=my+search+query"
> m_HTTP.Send m_Body
> ' get reply
> MsgBox m_HTTP.ResponseText
>
> TECH
> http://www.tversoft.com
>
>
> "Kaypee" <kaypee_nz@hotmail.REMOVE.THIS.com> wrote in message
> news:e06Gd1e$DHA.3804@TK2MSFTNGP09.phx.gbl...
> > Am after getting pages from net.
> >
> > am after pulling in a range of pages off a web site.
> > this info got from dropdown of form where action = 'get' thus all
> submitted
> > info is part of the url using InternetOpenUrl and InternetReadFile to
loop
> > around and retrieve asp files with changing parameters.
> >
> >
> > How can I do the same sort of thing where form is 'post' Thus how do I
> > submit form info - any API? am at a complete loss.
> >
> >
> >
> > tia
> >
> > Karl
> >
> >
> >
>
>
- Next message: Klaus H. Probst: "Re: Passing Strings to C"
- Previous message: MikeD: "Re: running a PIF file for DOS application using CreateProcess"
- In reply to: TECH: "Re: Grabbing web pages programmatically"
- Messages sorted by: [ date ] [ thread ]