My guess is that we configure the curl to support the full range of http auth methods.<br>Some of them like Digest require a challenge and realm etc so it's probably asking without auth header because it cannot create one until it gets that data. In the case of Basic you can send the login and pass right away but it does not know in advance that it will be basic.<br>
<br>Here is a snippet from the libcurl api docs:<br>-------------------------------------------------------------------------------------------------------------------------------------------------------------<br><p class="level0">
Both these options allow you to set multiple types
(by ORing them together), to make libcurl pick the most secure one out
of the types the server/proxy claims to support. This method does
however add a round-trip since libcurl must first ask the server what
it supports:
</p><p class="level0"> curl_easy_setopt(easyhandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST|CURLAUTH_BASIC);
</p>-------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>So my guess is that if we set it to only support basic, then it would work how you expect so if you want to test it for me I can make it into a parameter.<br>
<br>edit: /usr/src/freeswitch.trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c line 220<br>change<br><br>curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);<br><br>to<br><br>curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);<br>
<br><br>If this works i'll think about exposing the auth methods so you can choose them in the config.<br><br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 9:39 AM, Christian Damianidis <span dir="ltr"><<a href="mailto:ChristianDamianidis@globalive.com">ChristianDamianidis@globalive.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" style="" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">This web request goes to a server running IIS on Windows Server
2003.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Brian West
[mailto:<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>] <br>
<b>Sent:</b> Monday, October 05, 2009 5:43 PM<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] mod_xml_curl http POST is
inconsistent/bug</span></p>
</div>
</div><div><div></div><div class="h5">
<p> </p>
<p>Are you using something other than apache?</p>
<div>
<p> </p>
</div>
<div>
<p>/b</p>
</div>
<div>
<p> </p>
<div>
<div>
<p>On Oct 5, 2009, at 1:25 PM, Christian Damianidis wrote:</p>
</div>
<p><br>
<br>
</p>
<div>
<p><span style="font-size: 11pt;"> </span></p>
</div>
<div>
<p><span style="font-size: 11pt;">The
inconsistent POST request sent by the module causes freeswitch to hang for 1-2
minutes during start-up.</span></p>
</div>
</div>
<p> </p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>