• RSS
  • Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

502 Error Received just after sending 'CONNECT xxx' to ISA Server

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2000 Firewall] >> General >> 502 Error Received just after sending 'CONNECT xxx' to ISA Server Page: [1]
Login
Message << Older Topic   Newer Topic >>
502 Error Received just after sending 'CONNECT xxx' to ... - 13.Nov.2001 11:45:00 AM   
xadave

 

Posts: 21
Joined: 25.Oct.2001
Status: offline
Hi,
I wrote a WinSock application,which connects to server on some TCP port.
I want to make use of proxy protocol,such as SOCKS4,SOCKS5 and HTTPS,
for my app to go accross ISA Server to connect Internet server. I am sure
that I have created proper ISA Server rule to enable that TCP port as the
application copy, which uses SOCKS4 runs well. But when I used HTTPS proxy
protocol,just after I made connection to my ISA Server and then send
'CONNECT xxx' string to ISA Server , the app received an 502 error from
ISA.
Our ISA Server's HTTP proxy port is 8080.

Now, I wonder if the error resulted from ISA Server configuration or my
application
that made use of HTTPS protocol.
Any idea or some advice? Thank you in advance.
xadave@sina.com

The 502 error message in buff is:
'HTTP/1.1 502 Proxy Error (The specified Secure Sockets Layer(SSL) port is
not allowed. ISA Server' is not configured to allow SSL request from this
port. Most Web browsers use port 443 for SSL requests.) Via:1.1 XXXPROXYSVR
Connection:'.

Code as below˙Ž
/*lpszAddress and nPort are IP address and TCP port for the Internet
Server.*/

if( !m_pSocket->Connect(m_strProxyIP,80) )
{
AfxMessageBox(_T("Fails to connect to Proxy Server!"));
m_pSocket->Close();
return FALSE;
}

char buff[600];
sprintf(buff,"%s%s:%d%s","CONNECT ",lpszAddress, nPort,"
HTTP/1.1\r\nUser-Agent:TestApp/0.1\r\n\r\n");
m_pSocket->Send(buff,strlen(buff));
memset(buff,0,600);
m_pSocket->Receive(buff,600);
/*Here, buff gets error message.*/

Post #: 1

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2000 Firewall] >> General >> 502 Error Received just after sending 'CONNECT xxx' to ISA Server Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts