This was a test file given by my TA for a cgi server assignment to write a cgi server in C, I was unable to run it on my linux, I just wanted to post the content, I am a college student and I am not...
Type: Posts; User: kapil1089thekin
This was a test file given by my TA for a cgi server assignment to write a cgi server in C, I was unable to run it on my linux, I just wanted to post the content, I am a college student and I am not...
by bash env.cgi, I am able to run that, as its a bash script, but I need to run a python script file called seg.cgi,
isn't it possible to run each of them using same command? and I am not able to...
I have solved those issues, you are right I was not following the protocol strictly.
Now I am stuck with another issue.
I have 3 cgi files, one in bash and another in python, is there anyway to...
suppose html file is requested by a browser/client.
from my server I have opened the html file and sent the content of the file to the client. that html file is actually a form. when I am trying...
How to run make file on linux, its related to a c program
I just want to know how to run a cgi script from a c program which is actually a server program, and send the result onto the browser/client.
I am making an http server,
when a file is requested the content is shown on the browser,
what I did, I opened the file on the server using:
fopen(file, "r");
and I send the contet to the...
Thanx 86,
:) I did this but I was expecting some results from some experienced people. BTW Thanks for making me feel I should work on my own :)
but most of them are programming CGI on built...
I want to make a server HTTP CGI ready and also implement the POST & GET method. If a client makes a GET or POST request in the cgi-bin directory, then the server is expected to execute the file.
...
I am writing two times on a socket, and reading it two times from the socket from other end..
i.e one write then read then write then read.. I don't know what is happenenning the two write...
How can I know the file content type in c?
I mean its text type or any other type?
I have a line of code which reads some bytes from the socket, actually I am using select.
recv(sockfd, buf, MAX, 0);
I have to know weather this byte is corresponding to close connection or...
have done this:
void getFile (char *file)
{
DIR *dir;
struct dirent *dp;
char cwd[1024];
This is my previous post which returns all the filename in a folder,
http://cboard.cprogramming.com/c-programming/130898-know-only-file-name-directory-linux.html
I want to list out all the file...
I have changed the code to :
serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
serv_addr.sin_port = htons(port);
still not working.
The client program now...
if i get a connection.. the server shoul print the line.. it is not printing that means the server has not get any connection..
I have coded a server program which interacts with my client, but it doesnt interact with a browser, what could be the problem?
here is the
server.c:
#include <netinet/in.h>
#include...
I am getting segmentation fault core dump error on the server side, how can I find the error? need of some suggestion!
I used getaddrinfo() in the server program, now server prints some msgs when I am using browser.
but the client doesn't, moreover the server gives Segmentation fault core dump. :(
How to chek weather firewall is blocking? OR how can I top it?
I don't think this is the case as when I start httpd sevice, it perfectly works fine, I mean I can see my homepage working.
The...
This msg is comming when I am trying using telnet: as
this is LAN IP, I have used all the three ips.. local, LAN, Internet, but no use.
I think u understood properly, but I have not used telnet, I have used my client program, and is connected to server,
the server profram is simple, it just accept any client(using socket...
No I am using Linux, and I don't think that what I am trying to do is platform dependent.
just I want to interact browser on client with the C-server on server!!!
Yes I have written the server program using C, and also a client program.
The client program connects correctly, and whatever is entered on client is printed on server.
But what I thought, if I...
I am running a server program on my local machine using port 8080 which prints whatever string is found from the client.
If I use a browser and enter the following address on address bar:
...