Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Decode perl cgi response in C

by stenasc (Novice)
on Jul 22, 2013 at 09:09 UTC ( #1045617=note: print w/replies, xml ) Need Help??


in reply to Re: Decode perl cgi response in C
in thread Decode perl cgi response in C

Yes...I think what it is telling me is to download a small file containing the text response. I tried an example in firefox and I got a prompt...Do you want to download test2.cgi? When I downloaded the file, it contained the desired text. "Hello". With my embedded system, I don't want to download a file...I just want to read the text it contains. Is that possible? I have a small perl client that just prints the response, so I would like to replicate this in C.

Replies are listed 'Best First'.
Re^3: Decode perl cgi response in C
by Corion (Pope) on Jul 22, 2013 at 10:56 UTC

    Maybe you want to learn about "sockets"? I assume that Unix Network Programming still is the authoritative book about this.

    Basically, a "socket" is like a "file", except you can't seek on it, and it goes over the network. From C, you can read/write the socket and you only need to know about the protocol that is spoken over that socket.

    The basic idea is that "download data" vs. "read data" is only a frontend issue and exists only for users, not for programs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045617]
help
Chatterbox?
[james28909]: thanks
[james28909]: what i am trying to do is track state of a chat based application. i need to be able to store the channels and such for a user, and when they join a new server/channel i need to be able to update that feild.
[james28909]: do you think OO would best suite that?
[karlgoethebier]: james28909: The last two are not mainstream. You have been warned ;-)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-05-25 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?