Read source from a HTML online

This is a discussion on Read source from a HTML online within the C Programming forums, part of the General Programming Boards category; I hope the title of my thread was appropriate, I will try to explain my problem a bit more detailed. ...

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    12

    Read source from a HTML online

    I hope the title of my thread was appropriate, I will try to explain my problem a bit more detailed.

    What I want to achieve is to scan/read the source of a html which is on a server.
    My question is, do I need to open a socket, create connection to the server and then just 'scanf' the file or is there an easier way to do this.

    The program is intended to export email addresses from a html file.
    Now maybe some of you think "hhmm smells like spam", this is for a company which sells hardware and cellphones over ebay and the internet, for which I work for as an assignment from my school.

    I will be happy recieve any replies about code, some libs or hints/tips.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    "hhmm smells like spam"

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    You can check the code I posted in this thread.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to build, run Boland C++ 6 source file via VS2005?
    By userpingz in forum C++ Programming
    Replies: 2
    Last Post: 05-21-2009, 04:25 AM
  2. bytes lost with partial read in UDP
    By mynickmynick in forum Networking/Device Communication
    Replies: 3
    Last Post: 03-31-2009, 03:06 AM
  3. read Causes Freezing?
    By Masna in forum C Programming
    Replies: 5
    Last Post: 07-18-2008, 05:31 PM
  4. source file to HTML...
    By Bleech in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-21-2006, 01:27 PM
  5. Multiple Read File Descriptors
    By blue8173 in forum C Programming
    Replies: 9
    Last Post: 04-21-2004, 02:19 PM

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