Thread: obtaining the html code using C

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    obtaining the html code using C

    how to obtain html code of a webpage using C?m being able to open a webpage in the browser but i nid the html source of that webpage..plzz help

  2. #2
    Registered User
    Join Date
    Jun 2010
    Location
    Bakersfield, California
    Posts
    22
    That functionality is built in to most browsers. A simple right-click on the page, select "View Source" and you've got the HTML source. I don't understand where C comes into the picture.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you wanted to do this from C you can lookup socket programming and the HTTP protocol to download the source.

    Reading:
    Beej's Guide to Network Programming
    Hypertext Transfer Protocol - Wikipedia, the free encyclopedia

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dynamic array
    By mouse666666 in forum C Programming
    Replies: 36
    Last Post: 04-11-2010, 02:27 AM
  2. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM
  3. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  4. What's the html tag you use when putting a code on a webpage?
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 05-26-2002, 05:21 AM
  5. Shouldn't either HTML or vB code be enabled in the C++ Board?
    By SilentStrike in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-13-2001, 07:30 AM