Http unix

F

Flash Gordon

How can i write an http client under unix?

By using libraries that are not part of standard C and therefore are not
on topic here. comp.unix.programmer is a better place for Unix related
questions, or one of the networking groups, but I would suggest that you
probably need to do a bit of work yourself rather than asking such an
all encompassing question.
 
R

Richard Heathfield

(e-mail address removed) said:
How can i write an http client under unix?

The HTTP/1.1 protocol is available here:

http://www.faqs.org/rfcs/rfc2616.html

With the trivial exception of the networking code, a simple client can be
written entirely in ISO C. And if you can connect your stdin and stdout to
the network (which, IIRC, is possible via inetd), you can do the whole
thing in ISO C. Having said that, you're so likely to run up against
system-specific problems (such as image display and, of course, the
networking if you're not using a stdin/stdout trick) that you'd be better
off asking this question in a Unix newsgroup such as comp.unix.programmer.
Assuming they don't just say "we already have plenty of browsers, we really
don't need another one", they may turn out to be quite helpful.
 
R

Robert Latest

On Thu, 13 Apr 2006 00:40:31 +0100,
in Msg. said:
By using libraries that are not part of standard C and therefore are not
on topic here.

Not true; it can all be done with stdin/stdout.

robert
 
F

Flash Gordon

Robert said:
On Thu, 13 Apr 2006 00:40:31 +0100,


Not true; it can all be done with stdin/stdout.

I didn't say it could not be done using stdin/stdout, I just said it
could be done using libraries that are not part of the standard C.
However not all unix like systems come with SW that would allow you to
connect stdin/stdout of one program to a TCP/IP port on another system
(remember, the OP wanted a client rather than server, to inetd is not
appropriate).
 
R

Robert Latest

On Thu, 13 Apr 2006 15:22:23 +0100,
in Msg. said:
(remember, the OP wanted a client rather than server, to inetd is not
appropriate).

Oops, my bad. Of course inetd was what I was thinking of.

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top