Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.


Comment on Re^2: Decode perl cgi response in C
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-10-30 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls