sending https request

This is a discussion on sending https request within the Networking/Device Communication forums, part of the General Programming Boards category; Hi All, any one can help me ... I am writing an application which sends a https request to the ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    12

    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 ;

    https://bidsystem.adknowledge.com/se...=67.29.139.197

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

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

    and I used this also

    "GET /search.php?afid=9999&kw=accredited+college+degree& size=10&ip=67.29.139.197 Secure * Secure-HTTP/1.4\r\n"
    "Host: bidsystem.adknowledge.com\r\n"
    "Accept: *_/*\r\n"
    "Connection: Close\r\n"
    "\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
    Location: https://bidsystem.adknowledge.com/se...29.139.197&ua=
    Vary: Accept-Encoding
    Content-Length: 312
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>302 Found</title>
    </head>
    <h1>Found</h1>
    <p>The document has moved <a href="https://bidsystem.adknowledge.com/search.php?afid=9999&amp;kw=accredited+college+deg ree&amp;size=10&amp;ip=67.29.139.197&amp;ua=" >here</a>.</p>

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    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, 11:59 PM
  3. my HTTP request handler code correct?
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-25-2008, 05: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

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