Re: Accessing web with a C program



Keith Thompson <kst-u@xxxxxxx> wrote:

rlb@xxxxxxxxxxxxxxxxxxxxxx (Richard Bos) writes:
This is very different from opening a URL, because that involves making
a connection to a random machine on the 'net, and possibly getting the
user to enter dialing passwords and all.

It's not obvious that fopen() should support the NFS protocol but not
the HTTP protocol.

Again: it is not fopen() which supports this in the first place. fopen()
gives you what it gets from the OS. To suggest that the C library
_should_ bypass the OS and support HTTP (how!?) when the OS only gives
you NFS as normal files is, IMO, rather weird.

It's also possible, on some operating systems, to create a filesystem
that maps URLs to what appear to be local file names. On such a
system, fopen("http://google.com";, "r") would invoke code in the
filesystem driver that would access google.com using the HTTP
protocol, but that would be invisible to the program that calls
fopen(). Given this capability letting fopen() accept URLs directly
is just a matter of doing the net access at a different level.

Exactly: _if_ the OS gives you that. It's not fopen() doing this.
fopen() is just a gateway between your program and what the OS provides.

Richard
.



Relevant Pages

  • RE: Issues loading ActiveX from local hta vs. http
    ... protocol (_only_ http and https). ... submit this feedback to our product feedback center: ... Microsoft Online Community Support ...
    (microsoft.public.vb.controls.internet)
  • [git pull] Input updates for post-2.6.21
    ... psmouse - allow disabing certain protocol extensions ... cobalt buttons - separate device and driver registration ... wistron - add support for TravelMate 610 ... ads7846 - add support for the ads7843 touchscreen ...
    (Linux-Kernel)
  • Re: Web Proxy Filter exception not working
    ... Allow all traffic but HTTP between all protected networks and the ... Unrestricted internet access between all protected networks and the ... The unfiltered protocol is denied so all other HTTP traffic still uses ... The intial connection to the MetroList site uses my unfiltered protocol. ...
    (microsoft.public.isa.configuration)
  • Re: Is HTTP an Async Protocol
    ... If you say that HTTP is 3 layers, which is true in one sense, ... TCP/IP is an asynchronous protocol (like most ... > network protocols). ... >> "asynch" is a term related to programming. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VPN clients cant access internal web sites
    ... Name: Http Vpn ... Protocol Type: Tcp ... Allow Traffic from Vpn Clients ... When I try to view web sites on the Internal network, I receive "Error Code: ...
    (microsoft.public.isa)