C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-30-2003, 10:59 AM   #1
Lord CyKill
Guest
 
Posts: n/a
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 cprogramming.com, 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?
  Reply With Quote
Old 04-30-2003, 04:03 PM   #2
Registered User
 
Join Date: Apr 2003
Posts: 32
>strstr( line, "<a href" ); maybe?
Sometimes '<a href' can contain "blank" links, like:
Code:
<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.
serruya is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 04:15 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22