Hi!<br>I try to connect to SSL + Basic HTTP Auth sites, for example : <a href="https://mail.google.com" target="_blank">https://mail.google.com</a> or <a href="https://api.del.icio.us" target="_blank">https://api.del.icio.us</a><br>
When I try :<br><br>| conn |<br>
conn := SSLSocket newConnectionAddress: (NetNameResolver addressForName: &#39;<a href="http://mail.google.com" target="_blank">mail.google.com</a>&#39;) port: 443<br><br>I obtain a socket with state: SSLConnectionClosed.<br>
With sites that do not require HTTP Basic authentication :<br>
<br>| conn |<br>conn := SSLSocket newConnectionAddress: (NetNameResolver addressForName: &#39;<a href="http://www.usaa.com" target="_blank">www.usaa.com</a>&#39;) port: 443<br><br>I obtain a SSLSocket with state: SSLConnectionConnected.<br>

But don&#39;t we need an open socket in order to send the request with the authentication data in the header ?<br><br>In fact, inside the HttpsSocket&gt;&gt;httpsGetDocumentFromUrl: url args: args accept: mimeType request: requestString we find:<br>

<br>sock := HttpsSocket new.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sock connectTo: serverAddr port: connectToPort.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (sock waitForConnectionUntil: (Time millisecondClockValue + (10000) truncated)) ifTrue: [<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sock sendCommand: &#39;GET &#39;, page, &#39; HTTP/1.0&#39;, String crlf, <br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (mimeType ifNotNil: [&#39;ACCEPT: &#39;, mimeType, String crlf] ifNil: [&#39;&#39;]),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;ACCEPT: text/html&#39;, String crlf,&nbsp;&nbsp;&nbsp; &quot;Always accept plain text&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; requestString,&nbsp;&nbsp;&nbsp; &quot;extra user request. Authorization&quot;<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;Host: &#39;, serverName, &#39;:&#39;, port printString, String crlf.<br>etc.etc.<br>with the possibility to put the authentication header inside the requestString.<br><br>Has someone any idea how to solve this problem?<br>

<br>Thank you.<br><br>pep<br><br>