Like Tree1Likes
  • 1 Post By CommonTater

HTTP request using C program

This is a discussion on HTTP request using C program within the C Programming forums, part of the General Programming Boards category; Hi, I'm working on a personal project which involves sending a http (Specifically POST) request using a C program. I'd ...

  1. #1
    Registered User sandeep080's Avatar
    Join Date
    Apr 2010
    Posts
    17

    Question HTTP request using C program

    Hi,
    I'm working on a personal project which involves sending a http (Specifically POST) request using a C program. I'd like to know how to do this in C\C++. I'd be glad if some one can help me out with this.

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Do you know how to use sockets in C? Do you know HTML? What OS are you using? To get you started this is where our Network Programming Board is.

    Additionally, for socket programming some good references are:
    Linux Howto Sockets
    Winsock FAQ

    For HTML:
    HTTP Made Easy
    HTTP 1.1

    Additionally there is libcurl which is a free and will provide a lot of functionality.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    Do you know how to use sockets in C? Do you know HTML? What OS are you using? To get you started this is where our Network Programming Board is.

    Additionally, for socket programming some good references are:
    Linux Howto Sockets
    Winsock FAQ

    For HTML:
    HTTP Made Easy
    HTTP 1.1

    Additionally there is libcurl which is a free and will provide a lot of functionality.
    Also don't forget Windows has it's own built in Internet API... WinINet Reference (Windows)
    AndrewHunter likes this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. getting body of HTTP request
    By c_weed in forum C++ Programming
    Replies: 5
    Last Post: 06-26-2011, 11:21 AM
  2. c programming http get request
    By daza166 in forum C Programming
    Replies: 2
    Last Post: 02-16-2011, 05:55 AM
  3. HTTP Get request to C Program
    By dcwang3 in forum C Programming
    Replies: 7
    Last Post: 11-16-2010, 06:11 PM
  4. Sending http get request
    By LeeVerr in forum C Programming
    Replies: 4
    Last Post: 09-07-2010, 10:02 PM
  5. HTTP GET request
    By aosmith in forum C Programming
    Replies: 4
    Last Post: 03-21-2010, 08:00 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21