Thread: sending https request

  1. #1
    Registered User
    Join Date
    Aug 2006

    sending https request

    Hi All, any one can help me ...

    I am writing an application which sends a https request to the server.... and gets the response from that server

    I am writing this in 'C'

    this is the actual URL ;

    This is the request format I am using for https protocol :

    "GET /search.php?afid=9999&kw=accredited+college+degree& size=10&ip= Secure-HTTP/1.4\r\n"
    "Content-Privacy-Domain: CMS\r\n"
    "Content-Type: message/http\r\n"

    and I used this also

    "GET /search.php?afid=9999&kw=accredited+college+degree& size=10&ip= Secure * Secure-HTTP/1.4\r\n"
    "Accept: *_/*\r\n"
    "Connection: Close\r\n"

    I tried with the port 80 and 443 .

    I am getting this message :

    HTTP/1.1 302 Found
    Date: Thu, 03 Aug 2006 16:38:33 GMT
    Server: Apache
    Vary: Accept-Encoding
    Content-Length: 312
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    <title>302 Found</title>
    <p>The document has moved <a href=";kw=accredited+college+deg ree&amp;size=10&amp;ip=;ua=" >here</a>.</p>

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Realistically, it is not going to be practical to implement an https client manually using sockets. You need to use a library such as libcurl or WinINet (on Windows).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending data - line by line?
    By tuckker in forum C Programming
    Replies: 0
    Last Post: 02-21-2009, 09:31 PM
  2. Can you check what is wrong with this code
    By Ron in forum C++ Programming
    Replies: 4
    Last Post: 08-01-2008, 10:59 PM
  3. my HTTP request handler code correct?
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-25-2008, 04:01 AM
  4. Sending an http POST request
    By jaxen in forum C++ Programming
    Replies: 5
    Last Post: 11-24-2006, 12:35 PM
  5. Sending http request to httpd
    By Encrypted in forum C Programming
    Replies: 3
    Last Post: 03-30-2003, 04:57 AM