How to use Client Certificate Authentication in iOS App

Your NSURLConnection delegate should respond to the connection:didReceiveAuthenticationChallenge: delegate method (see link below). http://developer.apple.com/library/ios/documentation/cocoa/reference/foundation/Classes/NSURLConnection_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/connection:didReceiveAuthenticationChallenge: It should respond by asking the challenge for its ‘sender’ and providing it with an appropriate credential. Something like: – (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge { id sender = [challenge sender]; // create a credential from a certificate // see doco for … Read more

What C++ library should I use to implement a HTTP client? [closed]

Curl++: is an option, particularly if you want things in more of a C++ style. cpp-netlib: very good and simple to use, available on ubuntu sudo apt-get install libcppnetlib-dev example: using namespace boost::network; using namespace boost::network::http; client::request request_(“http://127.0.0.1:8000/”); request_ << header(“Connection”, “close”); client client_; client::response response_ = client_.get(request_); std::string body_ = body(response_);

Is there a WebSocket client implemented for .NET? [closed]

Here’s a quick first pass at porting that Java code to C#. Doesn’t support SSL mode and has only been very lightly tested, but it’s a start. using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; public class WebSocket { private Uri mUrl; private TcpClient mClient; private NetworkStream mStream; private bool mHandshakeComplete; … Read more