iis上ftp服务器用户设置,IIS设置FTP服务器,想请教一下怎样设置用户名和密码

这样看看:用SPI重写WSPSend(),如果是80端口,那么就检查申请人的ip,如果此IP从来没有登记过,那么就要他输入ID和PASS,他输入正确的话,保存它的IP和用户名,密码以便下次查找。

char szUnauthorized[] = HTTP/1.0 407 Unauthorized\r\n

Server: Simple Proxy\r\n

char szUnauthorized[] = HTTP/1.0 407 Unauthorized\r\n

Server: Simple Proxy\r\n

Proxy-Authenticate: Basic realm=\ Simple Proxy Authorization\ \r\n

Cache-control: no-cache\r\n

\r\n

Html Body H1 Unauthorized ... /H1 /Body /Html ;: Basic realm=\ Simple Proxy Authorization\ \r\n

Cache-control: no-cache\r\n

\r\n

Html Body H1 Unauthorized ... /H1 /Body /Html ;

收到browser请求时,验证请求头中Proxy-Authenticate:后面的用户名和密码,如果不正确发送上面内容到browser而不去请求webserver相关页面。上面内容关键两点:

HTTP/1.0 407 Unauthorized\r\n

Proxy-Authenticate: Basic realm=\ Simple Proxy Authorization\ \r\n

上面帖的乱了,看下面(\r\n是回车换行,即0d0a)

HTTP/1.0 407 Unauthorized\r\n

Server: Simple Proxy\r\n

Proxy-Authenticate: Basic realm= Simple Proxy Authorization \r\n

Cache-control: no-cache\r\n

\r\n

Html Body H1 Unauthorized ... /H1 /Body /Html

取消

评论