How do I use the node.js request module to make an SSL call with my own certificate?

This largely elaborates on Peter Lyons’ answer, providing an example. I am assuming that you are requesting a domain running over HTTPS with a certificate signed by your own certificate authority (ca). When using the request library, as you do, there is no need to actually instantiate the agent yourself, you can simply provide some … Read more

What is the global default timeout

I suspect this is implementation-dependent. That said, for CPython: From socket.create_connection, If no timeout is supplied, the global default timeout setting returned by :func:getdefaulttimeout is used. From socketmodule.c, static PyObject * socket_getdefaulttimeout(PyObject *self) { if (defaulttimeout < 0.0) { Py_INCREF(Py_None); return Py_None; } else return PyFloat_FromDouble(defaulttimeout); } Earlier in the same file, static double defaulttimeout … Read more

iPhone XMLRequest

You can use libxml2. I suspect it is the fastest approach. Add its framework to your project (see the “setting up your project” section of this document). In the header of your XML writer, add the following imports: #import <libxml/encoding.h> #import <libxml/xmlwriter.h> In the implementation, write a method to generate your XML. Presumably you’ll be … Read more