[JDEV] Hi ...Request for MSN-TRansport updation

Yogindar Das Y yogindar at india.hp.com
Fri Oct 3 05:21:32 CDT 2003


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20031003/22301365/attachment-0002.htm>


More information about the JDev mailing list