login about faq

I used gsoap to access my ws (SSL), now that I have CHILKAT,I would like know, if have any way to use SSL in this sample:

http://www.example-code.com/vcpp/http_soap.asp

asked Dec 28 '12 at 10:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


Yes, it is very easy. Change the following code fragment from this:

    const char * domain;
    long port;
    bool ssl;
    domain = "www.webservicex.net";
    port = 80;
    ssl = false;
    CkHttpResponse *resp = 0;
    resp = http.SynchronousRequest(domain,port,ssl,req);
to this:
    const char * domain;
    long port;
    bool ssl;
    domain = "www.webservicex.net";
    port = 443;
    ssl = true;
    CkHttpResponse *resp = 0;
    resp = http.SynchronousRequest(domain,port,ssl,req);

link

answered Dec 28 '12 at 10:34

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×56
×11

Asked: Dec 28 '12 at 10:32

Seen: 1,985 times

Last updated: Dec 28 '12 at 10:34

powered by OSQA