Hi
I think you can add a small support
for msn-transport.
Just add
curl_easy_setopt(curl, CURLOPT_PROXY, "proxy-host.com:8080");
curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, "user:password");
in the function mt_ssl_auth() of ns.c so that
it will communicate with the passport authentication server through the proxy
environment specified.
The hardcoded value of the proxy server and port
,username and password for authentication in the code can be made flexible by
reading it from the configuration file msnt.xml as follows
<proxy set="on">
<host>proxy-host.com</host>
<port>8080</port>
<auth set="on">
<user>user</user>
<pass>password</pass>
</auth>
</port>
the set="on" or "off" option for proxy tag can be
used as an option to work through a proxy server or not
the set="on" or "off" option for auth tag can
be used as an option to work through a proxy server with authentication turned
on or off.
Iam not sure how much value it is adding to
msn-transport but still I have added the curl api's and found the msn-transport
started working through a proxy server. Regards
Yogindar
|