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: '<a href="http://mail.google.com" target="_blank">mail.google.com</a>') 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: '<a href="http://www.usaa.com" target="_blank">www.usaa.com</a>') port: 443<br><br>I obtain a SSLSocket with state: SSLConnectionConnected.<br>
But don'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>>httpsGetDocumentFromUrl: url args: args accept: mimeType request: requestString we find:<br>
<br>sock := HttpsSocket new.<br> sock connectTo: serverAddr port: connectToPort.<br> (sock waitForConnectionUntil: (Time millisecondClockValue + (10000) truncated)) ifTrue: [<br> sock sendCommand: 'GET ', page, ' HTTP/1.0', String crlf, <br>
(mimeType ifNotNil: ['ACCEPT: ', mimeType, String crlf] ifNil: ['']),<br> 'ACCEPT: text/html', String crlf, "Always accept plain text"<br> requestString, "extra user request. Authorization"<br>
'Host: ', serverName, ':', 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>