<div>Hi,</div>
<div> </div>
<div>  I am not sure.  But I found a new clue, hope it is useful to you.</div>
<div> </div>
<div>  Though both situations (use http_proxy or not) have &quot;similiar&quot; errors,but there is a little difference for the error reports.</div>
<div> </div>
<div>  If I use http_proxy:</div>
<div> </div>
<div>  <a href="mailto:root@shenhua-ims">root@shenhua-ims</a>:~# xcap-icon<br>Traceback (most recent call last):<br>  File &quot;/usr/local/bin/xcap-icon&quot;, line 25, in &lt;module&gt;<br>    from sipsimple.payloads.icon import Icon, Data<br>
  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py&quot;, line 41, in &lt;module&gt;<br>    class Icon(XMLRootElement):<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py&quot;, line 418, in __init__<br>
    cls._xml_schema = etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir, cls._xml_schema_file), &#39;r&#39;)))<br>  File &quot;xmlschema.pxi&quot;, line 85, in lxml.etree.XMLSchema.__init__ (src/lxml/lxml.etree.c:101873)<br>
lxml.etree.XMLSchemaParseError: failed to load HTTP resource</div>
<div> </div>
<div>And if I unset http_proxy:</div>
<div> </div>
<div><a href="mailto:root@shenhua-ims">root@shenhua-ims</a>:~# xcap-icon       <br>Traceback (most recent call last):<br>  File &quot;/usr/local/bin/xcap-icon&quot;, line 25, in &lt;module&gt;<br>    from sipsimple.payloads.icon import Icon, Data<br>
  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py&quot;, line 41, in &lt;module&gt;<br>    class Icon(XMLRootElement):<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py&quot;, line 418, in __init__<br>
    cls._xml_schema = etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir, cls._xml_schema_file), &#39;r&#39;)))<br>  File &quot;xmlschema.pxi&quot;, line 85, in lxml.etree.XMLSchema.__init__ (src/lxml/lxml.etree.c:101873)<br>
lxml.etree.XMLSchemaParseError: Operation in progress<br><a href="mailto:root@shenhua-ims">root@shenhua-ims</a>:~#</div>
<div> </div>
<div>I notice that the first is &quot;failed to load HTTP resource &quot; , but the second is &quot;Operation in progress &quot;.</div>
<div> </div>
<div> </div>
<div>Hope this is useful, thanks for your reply~~</div>
<div> </div>
<div> </div>
<div>CheeWii</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">2010/7/7 Adrian Georgescu <span dir="ltr">&lt;<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">The http client needs to fetch the schema to check the document against from w3c. Maybe this fails though is not obvious. 
<div><br></div>
<div>Adrian</div>
<div><br>
<div><br>
<div>
<div>
<div></div>
<div class="h5">
<div>On Jul 7, 2010, at 10:36 AM, CheeWii wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">
<div>Hi Saúl,</div>
<div> </div>
<div>    Thanks for your reply ,but I&#39;m  afraid that http_proxy is not the root of this problem.</div>
<div> </div>
<div>    Because I have do the same test:</div>
<div> </div>
<div>    <a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# unset http_proxy<br>    <a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# unset HTTP_PROXY<br>    <a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# echo $http_proxy</div>

<div> </div>
<div>    <a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# echo $HTTP_PROXY</div>
<div> </div>
<div>    <a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# </div>
<div> </div>
<div>    <a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# xcap-icon </div>
<div>Traceback (most recent call last):<br>  File &quot;/usr/local/bin/xcap-icon&quot;, line 25, in &lt;module&gt;<br>    from sipsimple.payloads.icon import Icon, Data<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py&quot;, line 41, in &lt;module&gt;<br>
    class Icon(XMLRootElement):<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py&quot;, line 418, in __init__<br>    cls._xml_schema = etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir, cls._xml_schema_file), &#39;r&#39;)))<br>
  File &quot;xmlschema.pxi&quot;, line 85, in lxml.etree.XMLSchema.__init__ (src/lxml/lxml.etree.c:101873)<br>lxml.etree.XMLSchemaParseError: Operation in progress<br><a href="mailto:root@shenhua-ims" target="_blank">root@shenhua-ims</a>:~# <br>
</div>
<div> </div>
<div>So, I think whether it is related to my XCAP-ROOT, because xcap-icon cannot connect to my xcap server. And I don&#39;t know how a http_proxy can impact xcap-icon function.</div>
<div> </div>
<div> </div>
<div>This is my sipsimpleclient configuration, you can use it to have a test.</div>
<div> </div>
<div>Accounts:<br>    <a href="mailto:10000@202.204.22.248" target="_blank">10000@202.204.22.248</a>:<br>        enabled = true<br>        auth:<br>            password = 10000</div>
<div>        xcap:<br>            xcap_root = &quot;<a href="http://202.204.22.248/xcap-root" target="_blank">http://202.204.22.248/xcap-root</a>&quot;</div>
<div> </div>
<div> </div>
<div>CheeWii</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">2010/7/7 Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com" target="_blank">saul@ag-projects.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br></blockquote>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">This is it. I just replicated your setup environment (with an HTTP<br>proxy) and get the error:<br><br>saghul@ubuntu:~$ xcap-icon<br>

<div>Traceback (most recent call last):<br></div>
<div>  File &quot;/usr/bin/xcap-icon&quot;, line 25, in &lt;module&gt;<br>    from sipsimple.payloads.icon import Icon, Data<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py&quot;, line<br>41, in &lt;module&gt;<br>
    class Icon(XMLRootElement):<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py&quot;,<br>line 418, in __init__<br>    cls._xml_schema =<br>etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,<br>
cls._xml_schema_file), &#39;r&#39;)))<br>  File &quot;xmlschema.pxi&quot;, line 85, in lxml.etree.XMLSchema.__init__<br>(src/lxml/lxml.etree.c:101873)<br></div>lxml.etree.XMLSchemaParseError: failed to load HTTP resource<br>
saghul@ubuntu:~$ unset HTTP_PROXY<br>saghul@ubuntu:~$<br>saghul@ubuntu:~$<br>saghul@ubuntu:~$<br>
<div>saghul@ubuntu:~$ xcap-icon<br>You need to specify the opperation: GET, PUT or DELETE<br>saghul@ubuntu:~$<br><br></div>
<div>
<div>_______________________________________________<br></div></div></blockquote>
<div> </div></div><br></div></div>
<div class="im">_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div><br></div></div></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>