reading HTML files from a given URL

Discussion in 'Perl' started by r@bbit, Aug 16, 2003.

  1. r@bbit

    r@bbit Guest

    Can you read html files from a perl cgi/program?
    I need to read the HTML index file from a URL supplied to the program and
    determine if its in a frameset.
    The frameset bit is easy enough, but I'm not sure how to access the index
    file. I know how to open files etc. when I have a path :)
    Can it be done?

    thanks
    R
     
    r@bbit, Aug 16, 2003
    #1
    1. Advertising

  2. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Sat, 16 Aug 2003 19:06:19 +1000, r@bbit wrote:

    > Can you read html files from a perl cgi/program?
    > I need to read the HTML index file from a URL supplied to the program and
    > determine if its in a frameset.
    > The frameset bit is easy enough, but I'm not sure how to access the index
    > file. I know how to open files etc. when I have a path :)
    > Can it be done?
    >
    > thanks
    > R


    You can use LWP, or LWP::Simple to fetch a URL.

    - Brian
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/PsV7iK/rA3tCpFYRAge9AJ9n/fTYFHo2/NHAph5riNq8sQQbBACcDYSk
    WTbJ4j/oLX3iRuSr6Dag93o=
    =OpfV
    -----END PGP SIGNATURE-----
     
    Brian Harnish, Aug 17, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon paugh
    Replies:
    1
    Views:
    956
  2. Lord0
    Replies:
    1
    Views:
    604
    Thomas Weidenfeller
    Apr 19, 2006
  3. chiara
    Replies:
    6
    Views:
    504
    Barry Schwarz
    Oct 6, 2005
  4. 2Barter.net
    Replies:
    0
    Views:
    401
    2Barter.net
    Dec 13, 2006
  5. Casey Hawthorne
    Replies:
    385
    Views:
    6,046
    ng2010
    Apr 4, 2010
Loading...

Share This Page