Thread: how to communicate with the web server

  1. #1
    Registered User
    Join Date
    Mar 2011

    how to communicate with the web server

    i want from client side to access the file from the root directory of webserver.
    i should be able to receive the file as a whole after receiving all the data packets.
    i am not getting how i should request to the server and how will the server reply.
    kindly, guide me the steps, commands, protocols I should follow.

    thanking you,
    nadeem athani

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Are you able to access this file using either your web browser or ftp?

    If not (for permissions etc), then writing some C code won't magically fix that for you.

    To save doing a lot of the detailed socket work yourself, consider using libcurl - the multiprotocol file transfer library
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can i force connecting to local web server via internet network ?
    By umen242 in forum Networking/Device Communication
    Replies: 5
    Last Post: 04-29-2008, 09:21 AM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 11:21 PM
  3. SWEBS Web Server
    By nickname_changed in forum A Brief History of
    Replies: 6
    Last Post: 09-22-2003, 02:46 AM
  4. Web Server in Router Network...
    By Aidman in forum Tech Board
    Replies: 15
    Last Post: 01-17-2003, 10:24 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM