Thread: using web browser "links" in C

  1. #1
    Lord CyKill

    using web browser "links" in C

    I want to use text-based web browser "links" to store the html code of a website.but dont know what is the way to implement it in a
    c-program. e.g. to save the html code of, how do i do that? Also, if i want to detect any active links to other pages in the stored html codethan how should i distinguish those from the html code?

  2. #2
    Registered User
    Join Date
    Apr 2003
    >strstr( line, "<a href" ); maybe?
    Sometimes '<a href' can contain "blank" links, like:
    <a href="#" onClick="javascript:void test('lala')"></a>
    It is a poor using of the <A> element, in this case, I think it's better to use a regular expression to check if contains a link.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Web browser based program
    By Lauris in forum C++ Programming
    Replies: 3
    Last Post: 11-14-2007, 05:01 PM
  2. Web Browser Control Help
    By dcboy in forum C# Programming
    Replies: 0
    Last Post: 10-22-2006, 09:25 AM
  3. Socket web browser
    By digitaltsai in forum Networking/Device Communication
    Replies: 17
    Last Post: 10-09-2005, 08:20 AM
  4. Web browser, dialogs, & kicking my pc
    By jinx in forum Windows Programming
    Replies: 1
    Last Post: 12-22-2001, 06:47 PM