programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

capturing a webpage

From: Dr. Roger Dube <rogerdube_at_dathq.com>
Date: Sun, 23 Oct 2005 14:38:27 -0400

Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 7bit
I am trying to work with TCPIP, and face the following couple of tasks.

I can use the following code to pull up a web browser that is showing the
page of interest.

: >BROWSER ( add cnt -- )

256 r-alloc locals| tempurl |

tempurl zplace

   0 ( hwnd )

   Z" open"

   tempurl

   0 ( params )

   0 ( directory )

   SW_SHOWNORMAL

   ShellExecute DROP ;

Example: s" www.google.com <http://www.google.com/> " >browser opens a
browser showing the google home page.

Question 1: How can I capture the contents being displayed (the raw html
data is fine - I can parse later) into memory?

Question 2: Is there a better way to accomplish this, for example using
tcpip socket connections? If so, is there a place where I could see sample
tcpip socket commands in forth?

Thanks!

-- Roger
 --------------------------------------------
 Dr. Roger Dube
 President and Chief Science Officer
 Digital Authentication Technologies, Inc.
 561.392.7404 (office)
 561.892.2474 (eFax)
 RogerDube_at_datHQ.com

 http://www.datHQ.com

 1900 Glades Road Suite 441

 Boca Raton, FL 33431-7333

 ----------------------------------------------------------------------
 This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. Any views expressed in this message are those of
the individual sender, except where the sender specifically states them to
be the views of Digital Authentication Technologies, Inc.

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sun Oct 23 2005 - 11:39:05 PDT

This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:20 PST