Search:

Type: Posts; User: kapil1089thekin

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    2,950

    This was a test file given by my TA for a cgi...

    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...
  2. Replies
    15
    Views
    2,950

    by bash env.cgi, I am able to run that, as its a...

    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...
  3. Replies
    15
    Views
    2,950

    I am done

    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...
  4. Replies
    15
    Views
    2,950

    suppose html file is requested by a...

    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...
  5. Replies
    2
    Views
    563

    Make file, how to run

    How to run make file on linux, its related to a c program
  6. Replies
    15
    Views
    2,950

    I just want to know how to run a cgi script from...

    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.
  7. Replies
    1
    Views
    663

    http serevr

    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...
  8. Replies
    15
    Views
    2,950

    Thanx 86, :) I did this but I was expecting...

    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...
  9. Replies
    15
    Views
    2,950

    Http cgi server

    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.
    ...
  10. Replies
    2
    Views
    2,412

    socket write synchronization

    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...
  11. how to know that a file content type?

    How can I know the file content type in c?
    I mean its text type or any other type?
  12. Replies
    1
    Views
    720

    close connection byte sent

    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...
  13. Replies
    2
    Views
    13,321

    have done this: void getFile (char *file) {...

    have done this:


    void getFile (char *file)
    {
    DIR *dir;
    struct dirent *dp;

    char cwd[1024];
  14. Replies
    2
    Views
    13,321

    find all files in current directory!

    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...
  15. Replies
    6
    Views
    875

    I have changed the code to : ...

    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...
  16. Replies
    6
    Views
    875

    if i get a connection.. the server shoul print...

    if i get a connection.. the server shoul print the line.. it is not printing that means the server has not get any connection..
  17. Replies
    6
    Views
    875

    Server with browser

    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...
  18. Replies
    1
    Views
    958

    client server

    I am getting segmentation fault core dump error on the server side, how can I find the error? need of some suggestion!
  19. Replies
    14
    Views
    1,277

    I used getaddrinfo() in the server program, now...

    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. :(
  20. Replies
    14
    Views
    1,277

    How to chek weather firewall is blocking? OR how...

    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...
  21. Replies
    14
    Views
    1,277

    This msg is comming when I am trying using...

    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.
  22. Replies
    14
    Views
    1,277

    I think u understood properly, but I have not...

    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...
  23. Replies
    14
    Views
    1,277

    No I am using Linux, and I don't think that what...

    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!!!
  24. Replies
    14
    Views
    1,277

    Yes I have written the server program using C,...

    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...
  25. Replies
    14
    Views
    1,277

    http server

    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:
    ...
Results 1 to 25 of 138
Page 1 of 6 1 2 3 4