Webpage Input

Discussion in 'C Programming' started by Umesh, Aug 27, 2007.

  1. Umesh

    Umesh Guest

    Is there any library which enables user to open a html file from
    internet as input?
     
    Umesh, Aug 27, 2007
    #1
    1. Advertising

  2. "Umesh" <> wrote in message
    news:...
    > Is there any library which enables user to open a html file from
    > internet as input?
    >

    Yes. In an ideal world fopen(http://www.xxxxx, "r") would do it. In practise
    you need a socket library, which in non-standard and slightly different on
    Windows, Linux, or Macs, so repost to a group for your operating system.

    --
    Free games and programming goodies.
    http://www.personal.leeds.ac.uk/~bgy1mm
     
    Malcolm McLean, Aug 27, 2007
    #2
    1. Advertising

  3. Umesh

    Richard Bos Guest

    Umesh <> wrote:

    > Is there any library which enables user to open a html file from
    > internet as input?


    None which is portable, and since various computer systems handle
    networking, TCP/IP, and HTTP requests differently (and many don't even
    allow (or for that matter are capable of) any of that at all), there
    cannot be. Any system which can get a file off a web server - the type
    of contents will probably not matter much for this, BTW - is likely to
    have a library to let you do so, but it's not going to work on other
    OSes. So ask in a newsgroup dedicated to your OS; possibly
    comp.unix.programmer, possibly microsoft.programmer.buzzword-du-jour.

    Richard

    [ Ping Steve Summit: is this not a FAQ, and should it not therefore be
    in section 19? ]
     
    Richard Bos, Aug 27, 2007
    #3
  4. Umesh

    santosh Guest

    Umesh wrote:

    > Is there any library which enables user to open a html file from
    > internet as input?


    Under UNIX consider using cURL or Wget.

    <http://curl.haxx.se/>
    <http://www.gnu.org/software/wget/>

    At least one of them is likely to be available on most UNIX systems.

    For details switch to a group like <news:comp.unix.programmer>

    For Windows, ask in a Windows group like
    <news:comp.os.ms-windows.programmer.win32>
     
    santosh, Aug 27, 2007
    #4
    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. Replies:
    1
    Views:
    438
  2. mxywp
    Replies:
    1
    Views:
    293
    Paul Rubin
    Oct 22, 2006
  3. Paul
    Replies:
    14
    Views:
    861
    Alexey Smirnov
    Jun 19, 2008
  4. sifar
    Replies:
    5
    Views:
    435
  5. soren625
    Replies:
    2
    Views:
    381
    soren625
    Dec 12, 2006
Loading...

Share This Page