Thread: http head request

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    http head request

    I want to write a c programe which sends http head request and read it to a structure or file.I am connecting to the internet via a proxy.can anybody help me ?

  2. #2
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by nishanthaMe View Post
    I want to write a c programe which sends http head request and read it to a structure or file.I am connecting to the internet via a proxy.can anybody help me ?
    * write a C program
    * send http head request
    * write to structure
    * write to file
    * connecting to the internet
    * proxies

    Which of those is your question about in particular? What have you written so far?

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    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.

  4. #4
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    not for head request

    I have written the programe and it works for GET request(created a socket and write GET reuest to the socket in the proxy)but it don't work for HEAD request.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    http://www.wireshark.org/
    So compare the transactions which your program does with those of a program which is known to work in the same circumstance (eg. your browser).

    http://www.rfc-editor.org/
    Here you will find the RFCs for the HTML protocol.
    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. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 10:13 AM
  2. my HTTP request handler code correct?
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-25-2008, 04:01 AM
  3. HTTP GET and POST REQUEST
    By strickey in forum Networking/Device Communication
    Replies: 3
    Last Post: 04-20-2007, 04:23 PM
  4. Can't figure out problem with code
    By Beast() in forum C Programming
    Replies: 4
    Last Post: 04-16-2005, 05:27 PM