让IE的<option>支持click事件http://hi.baidu.com/wymplus/item/0fb481595e22de948d12ed43

本文介绍了一种在Internet Explorer浏览器中实现下拉选择框选项点击事件的方法,通过JavaScript监听特定条件下的鼠标事件,间接模拟了选项点击的效果。


使IE中的<option></option>支持click事件


转自:http://hi.baidu.com/wymplus/item/0fb481595e22de948d12ed43

在IE里, select的option是不支持onclick事件的, 而在FF 和 OPERA 里, option 是支持onclick事件的. 

(safari似乎也不支持,不过暂时我还不知道如何解决safari的问题.) 

虽然onchange在某些时刻可以代替 option的click事件, 但是两者并无法做到完全等价. 
因为onchange只有在 你点击的option和之前的option不同时才会触发. 
当select当前选中的是第一项  而你再次点击第一项时, select是不会被触发的. 


下面的代码演示了一种间接实现 option onclick的方法 

注意:此方案只适用于 下拉方式的单选select. 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>select-option onclick </title>
<script type="text/javascript" >

function simOptionClick4IE(){
var evt=window.event  ;
var selectObj=evt?evt.srcElement:null;
// IE Only
if (evt && selectObj &&  evt.offsetY && evt.button!=2
&& (evt.offsetY > selectObj.offsetHeight || evt.offsetY<0 ) ) {

// 记录原先的选中项
var oldIdx = selectObj.selectedIndex;

setTimeout(function(){
var option=selectObj.options[selectObj.selectedIndex];
// 此时可以通过判断 oldIdx 是否等于 selectObj.selectedIndex
// 来判断用户是不是点击了同一个选项,进而做不同的处理.
showOptionValue(option)

}, 60);
}
}

function showOptionValue(opt,msg){
var now=new Date();
var dt= (1900+now.getYear())+'-'+(now.getMonth()+1)+'-'+now.getDate()+
' '+now.getHours()+':'+now.getHours()+':'+now.getSeconds()+'.'+now.getMilliseconds();
var resultZone=document.getElementById('reslut');
resultZone.style.margin="10px";
resultZone.innerHTML=dt +" 时,点击了: " + (opt.text + ' = '+opt.value);
}

</script>
</head>

<body>

<select  onclick="simOptionClick4IE()" > 
<!-- 下面的 onclick="showOptionValue( this )" 是为 ff 和 opera而准备 -->
<option value="1" onclick="showOptionValue( this )" >aaaaa</option>
<option value="2" onclick="showOptionValue( this )" >bbbbb</option>
<option value="3" onclick="showOptionValue( this )" >ccccc</option>
</select>

<div id="reslut" ></div>
</body>
</html>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"> <w:body> <w:tbl> <w:tblPr> <w:tblW w:w="4928" w:type="pct"/> <w:tblInd w:w="120" w:type="dxa"/> <w:tblLayout w:type="fixed"/> <w:tblCellMar> <w:top w:w="120" w:type="dxa"/> <w:left w:w="120" w:type="dxa"/> <w:bottom w:w="120" w:type="dxa"/> <w:right w:w="120" w:type="dxa"/> </w:tblCellMar> <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/> </w:tblPr> <w:tblGrid> <w:gridCol w:w="8186"/> </w:tblGrid> <w:tr w:rsidR="00BB4005" w14:paraId="362F372D" w14:textId="77777777"> <w:tc> <w:tcPr> <w:tcW w:w="5000" w:type="pct"/> </w:tcPr> <w:sdt> <w:sdtPr> <w:tag w:val="{"type":"table","attrs":{"align":"left","columns":[100.0],"hideOnReadonly":false,"indent":0,"uuid":"4fcddcc0-261d-4597-851d-c96f69e891b9","widthType":"pct"}}"/> <w:id w:val="-193472243"/> </w:sdtPr> <w:sdtEndPr/> <w:sdtContent> <w:tbl> <w:tblPr> <w:tblW w:w="8049" w:type="dxa"/> <w:tblInd w:w="57" w:type="dxa"/> <w:tblLayout w:type="fixed"/> <w:tblCellMar> <w:top w:w="57" w:type="dxa"/> <w:left w:w="57" w:type="dxa"/> <w:bottom w:w="57" w:type="dxa"/> <w:right w:w="57" w:type="dxa"/> </w:tblCellMar> <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/> </w:tblPr> <w:tblGrid> <w:gridCol w:w="8049"/> </w:tblGrid> <w:tr w:rsidR="00BB4005" w14:paraId="1CC7A1A9" w14:textId="77777777"> <w:tc> <w:tcPr> <w:tcW w:w="8049" w:type="dxa"/> <w:shd w:val="clear" w:color="auto" w:fill="FAFAFA"/> </w:tcPr> <w:sdt> <w:sdtPr> <w:tag w:val="{"type":"codeBlock","attrs":{"hideOnReadonly":false,"indent":0,"isFirstCreated":false,"isOpen":true,"language":"auto","lineNumbers":true,"showFull":false,"uuid":"eb21f372-65f1-49b9-9acf-e22b2186c7d8","wordWrap":false}}"/> <w:id w:val="1330563078"/> </w:sdtPr> <w:sdtEndPr/> <w:sdtContent> <w:p w14:paraId="0B60D492" w14:textId="77777777" w:rsidR="00AA2CC4" w:rsidRDefault="00307412"> <w:pPr> <w:jc w:val="left"/> </w:pPr> <w:r> <w:rPr> <w:rFonts w:ascii="微软雅黑" w:eastAsia="微软雅黑" w:hAnsi="微软雅黑" w:cs="微软雅黑"/> <w:sz w:val="20"/> </w:rPr> <w:t>大苏打</w:t> </w:r> </w:p> </w:sdtContent> </w:sdt> </w:tc> </w:tr> </w:tbl> <w:p w14:paraId="319181D9" w14:textId="77777777" w:rsidR="00000000" w:rsidRDefault="00307412"> <w:pPr> <w:jc w:val="left"/> <w:rPr> <w:rFonts w:ascii="Times New Roman" w:eastAsia="Times New Roman"/> <w:sz w:val="20"/> <w:szCs w:val="20"/> </w:rPr> </w:pPr> </w:p> </w:sdtContent> </w:sdt> </w:tc> </w:tr> </w:tbl> <w:p w14:paraId="4C648EEA" w14:textId="77777777" w:rsidR="00307412" w:rsidRDefault="00307412"/> <w:sectPr w:rsidR="00307412"> <w:headerReference w:type="default" r:id="rId6"/> <w:pgSz w:w="11906" w:h="16838"/> <w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="720" w:footer="720" w:gutter="0"/> <w:cols w:space="720"/> </w:sectPr> </w:body> </w:document> 和这个有什么区别 为什么这个打开不提示有无法读取内容
10-29
[root@yfw ~]# cd /www/wwwroot/szrengjing.com [root@yfw szrengjing.com]# curl -v \ > -H "Content-Type: text/xml" \ > -d '<body rid="123456789" xmlns="http://jabber.org/protocol/httpbind"/>' \ > https://zxkf.szrengjing.com/http-bind * Trying 124.71.230.244... * TCP_NODELAY set * Connected to zxkf.szrengjing.com (124.71.230.244) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=zxkf.szrengjing.com * start date: Oct 13 03:37:58 2025 GMT * expire date: Jan 11 03:37:57 2026 GMT * subjectAltName: host "zxkf.szrengjing.com" matched cert's "zxkf.szrengjing.com" * issuer: C=US; O=Let's Encrypt; CN=R12 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x55bbc29d5690) * TLSv1.3 (OUT), TLS app data, [no content] (0): > POST /http-bind HTTP/2 > Host: zxkf.szrengjing.com > User-Agent: curl/7.61.1 > Accept: */* > Content-Type: text/xml > Content-Length: 67 > * TLSv1.3 (OUT), TLS app data, [no content] (0): * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 200 < server: nginx < date: Fri, 31 Oct 2025 09:23:14 GMT < content-type: text/xml;charset=utf-8 < content-length: 730 < access-control-allow-methods: CANCELUPLOAD, HEAD, MKCOL, UNCHECKOUT, POST, CHECKIN, CHECKOUT, PROPFIND, LOCK, VERSION-CONTROL, COPY, REPORT, OPTIONS, PUT, DELETE, GETLIB, MOVE, GET, UPDATE, PROPPATCH, UNLOCK < access-control-allow-headers: Destination, Overwrite, X-Requested-With, Cache-Control, X-File-Name, User-Agent, X-File-Size, If-Modified-Since, Depth, Content-Type < access-control-max-age: 86400 < vary: Accept-Encoding < set-cookie: server_name_session=30cfff002de8f66adfef6602044f67bf; Max-Age=86400; httponly; path=/ < set-cookie: SITE_TOTAL_ID=8a26e92882ea3ce1d1a1c8b0e22e54c1; Path=/; Max-Age=259200000; HttpOnly < strict-transport-security: max-age=31536000 < * Connection #0 to host zxkf.szrengjing.com left intact <body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" from="localhost" authid="4jvalcpo6q" sid="4jvalcpo6q" secure="true" requests="2" inactivity="30" polling="5" wait="60"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>PADE</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>JIVE-SHAREDSECRET</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session></stream:features></body>[root@yfw szrengjing.com]# printf '\0%s\0%s' "test@zxkf.szrengjing.com" "test123" | base64 AHRlc3RAenhrZi5zenJlbmdqaW5nLmNvbQB0ZXN0MTIz [root@yfw szrengjing.com]# curl -v \ > -H "Content-Type: text/xml" \ > -d '<body rid="123456790" sid="a1b2c3d4e5" xmlns="http://jabber.org/protocol/httpbind"><auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">AHRlc3RAenhrZi5zenJlbmdqaW5nLmNvbQB0ZXN0MTIz</auth></body>' \ > https://zxkf.szrengjing.com/http-bind * Trying 124.71.230.244... * TCP_NODELAY set * Connected to zxkf.szrengjing.com (124.71.230.244) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=zxkf.szrengjing.com * start date: Oct 13 03:37:58 2025 GMT * expire date: Jan 11 03:37:57 2026 GMT * subjectAltName: host "zxkf.szrengjing.com" matched cert's "zxkf.szrengjing.com" * issuer: C=US; O=Let's Encrypt; CN=R12 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x55d36269a690) * TLSv1.3 (OUT), TLS app data, [no content] (0): > POST /http-bind HTTP/2 > Host: zxkf.szrengjing.com > User-Agent: curl/7.61.1 > Accept: */* > Content-Type: text/xml > Content-Length: 206 > * TLSv1.3 (OUT), TLS app data, [no content] (0): * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 404 < server: nginx < date: Fri, 31 Oct 2025 09:24:02 GMT < content-type: text/html;charset=iso-8859-1 < content-length: 447 < access-control-allow-methods: CANCELUPLOAD, HEAD, MKCOL, UNCHECKOUT, POST, CHECKIN, CHECKOUT, PROPFIND, LOCK, VERSION-CONTROL, COPY, REPORT, OPTIONS, PUT, DELETE, GETLIB, MOVE, GET, UPDATE, PROPPATCH, UNLOCK < access-control-allow-headers: Destination, Overwrite, X-Requested-With, Cache-Control, X-File-Name, User-Agent, X-File-Size, If-Modified-Since, Depth, Content-Type < access-control-max-age: 86400 < cache-control: must-revalidate,no-cache,no-store < set-cookie: server_name_session=30cfff002de8f66adfef6602044f67bf; Max-Age=86400; httponly; path=/ < set-cookie: SITE_TOTAL_ID=8001a74e1830d2161a1cf7c26ef85177; Path=/; Max-Age=259200000; HttpOnly < <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Invalid SID value.</title> </head> <body><h2>HTTP ERROR 404 Invalid SID value.</h2> <table> <tr><th>URI:</th><td>/http-bind</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Invalid SID value.</td></tr> <tr><th>SERVLET:</th><td>org.jivesoftware.openfire.http.HttpBindServlet-5d6deb83</td></tr> </table> </body> </html> * Connection #0 to host zxkf.szrengjing.com left intact [root@yfw szrengjing.com]# curl -v \ > -H "Content-Type: text/xml" \ > -d '<body rid="123456791" sid="a1b2c3d4e5" xmlns="http://jabber.org/protocol/httpbind"/>' \ > https://zxkf.szrengjing.com/http-bind * Trying 124.71.230.244... * TCP_NODELAY set * Connected to zxkf.szrengjing.com (124.71.230.244) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=zxkf.szrengjing.com * start date: Oct 13 03:37:58 2025 GMT * expire date: Jan 11 03:37:57 2026 GMT * subjectAltName: host "zxkf.szrengjing.com" matched cert's "zxkf.szrengjing.com" * issuer: C=US; O=Let's Encrypt; CN=R12 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x558a00b18690) * TLSv1.3 (OUT), TLS app data, [no content] (0): > POST /http-bind HTTP/2 > Host: zxkf.szrengjing.com > User-Agent: curl/7.61.1 > Accept: */* > Content-Type: text/xml > Content-Length: 84 > * TLSv1.3 (OUT), TLS app data, [no content] (0): * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 404 < server: nginx < date: Fri, 31 Oct 2025 09:24:31 GMT < content-type: text/html;charset=iso-8859-1 < content-length: 447 < access-control-allow-methods: CANCELUPLOAD, HEAD, MKCOL, UNCHECKOUT, POST, CHECKIN, CHECKOUT, PROPFIND, LOCK, VERSION-CONTROL, COPY, REPORT, OPTIONS, PUT, DELETE, GETLIB, MOVE, GET, UPDATE, PROPPATCH, UNLOCK < access-control-allow-headers: Destination, Overwrite, X-Requested-With, Cache-Control, X-File-Name, User-Agent, X-File-Size, If-Modified-Since, Depth, Content-Type < access-control-max-age: 86400 < cache-control: must-revalidate,no-cache,no-store < set-cookie: server_name_session=30cfff002de8f66adfef6602044f67bf; Max-Age=86400; httponly; path=/ < set-cookie: SITE_TOTAL_ID=28ed8155ee72e0f4550b47cf2835a543; Path=/; Max-Age=259200000; HttpOnly < <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Invalid SID value.</title> </head> <body><h2>HTTP ERROR 404 Invalid SID value.</h2> <table> <tr><th>URI:</th><td>/http-bind</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Invalid SID value.</td></tr> <tr><th>SERVLET:</th><td>org.jivesoftware.openfire.http.HttpBindServlet-5d6deb83</td></tr> </table> </body> </html> * Connection #0 to host zxkf.szrengjing.com left intact [root@yfw szrengjing.com]# curl -v \ > -H "Content-Type: text/xml" \ > -d '<body rid="123456792" sid="a1b2c3d4e5" xmlns="http://jabber.org/protocol/httpbind"><iq type="set" id="bind_1"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></iq></body>' \ > https://zxkf.szrengjing.com/http-bind * Trying 124.71.230.244... * TCP_NODELAY set * Connected to zxkf.szrengjing.com (124.71.230.244) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=zxkf.szrengjing.com * start date: Oct 13 03:37:58 2025 GMT * expire date: Jan 11 03:37:57 2026 GMT * subjectAltName: host "zxkf.szrengjing.com" matched cert's "zxkf.szrengjing.com" * issuer: C=US; O=Let's Encrypt; CN=R12 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x55f336fc2690) * TLSv1.3 (OUT), TLS app data, [no content] (0): > POST /http-bind HTTP/2 > Host: zxkf.szrengjing.com > User-Agent: curl/7.61.1 > Accept: */* > Content-Type: text/xml > Content-Length: 170 > * TLSv1.3 (OUT), TLS app data, [no content] (0): * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 404 < server: nginx < date: Fri, 31 Oct 2025 09:24:46 GMT < content-type: text/html;charset=iso-8859-1 < content-length: 447 < access-control-allow-methods: CANCELUPLOAD, HEAD, MKCOL, UNCHECKOUT, POST, CHECKIN, CHECKOUT, PROPFIND, LOCK, VERSION-CONTROL, COPY, REPORT, OPTIONS, PUT, DELETE, GETLIB, MOVE, GET, UPDATE, PROPPATCH, UNLOCK < access-control-allow-headers: Destination, Overwrite, X-Requested-With, Cache-Control, X-File-Name, User-Agent, X-File-Size, If-Modified-Since, Depth, Content-Type < access-control-max-age: 86400 < cache-control: must-revalidate,no-cache,no-store < set-cookie: server_name_session=30cfff002de8f66adfef6602044f67bf; Max-Age=86400; httponly; path=/ < set-cookie: SITE_TOTAL_ID=09c959972fc00b5d57116d6bffb455a6; Path=/; Max-Age=259200000; HttpOnly < <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Invalid SID value.</title> </head> <body><h2>HTTP ERROR 404 Invalid SID value.</h2> <table> <tr><th>URI:</th><td>/http-bind</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Invalid SID value.</td></tr> <tr><th>SERVLET:</th><td>org.jivesoftware.openfire.http.HttpBindServlet-5d6deb83</td></tr> </table> </body> </html> * Connection #0 to host zxkf.szrengjing.com left intact [root@yfw szrengjing.com]# curl -v \ > -H "Content-Type: text/xml" \ > -d '<body rid="123456793" sid="a1b2c3d4e5" xmlns="http://jabber.org/protocol/httpbind"><iq type="set" id="sess_1"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq></body>' \ > https://zxkf.szrengjing.com/http-bind * Trying 124.71.230.244... * TCP_NODELAY set * Connected to zxkf.szrengjing.com (124.71.230.244) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=zxkf.szrengjing.com * start date: Oct 13 03:37:58 2025 GMT * expire date: Jan 11 03:37:57 2026 GMT * subjectAltName: host "zxkf.szrengjing.com" matched cert's "zxkf.szrengjing.com" * issuer: C=US; O=Let's Encrypt; CN=R12 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x56369a9f5690) * TLSv1.3 (OUT), TLS app data, [no content] (0): > POST /http-bind HTTP/2 > Host: zxkf.szrengjing.com > User-Agent: curl/7.61.1 > Accept: */* > Content-Type: text/xml > Content-Length: 176 > * TLSv1.3 (OUT), TLS app data, [no content] (0): * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 404 < server: nginx < date: Fri, 31 Oct 2025 09:25:06 GMT < content-type: text/html;charset=iso-8859-1 < content-length: 447 < access-control-allow-methods: CANCELUPLOAD, HEAD, MKCOL, UNCHECKOUT, POST, CHECKIN, CHECKOUT, PROPFIND, LOCK, VERSION-CONTROL, COPY, REPORT, OPTIONS, PUT, DELETE, GETLIB, MOVE, GET, UPDATE, PROPPATCH, UNLOCK < access-control-allow-headers: Destination, Overwrite, X-Requested-With, Cache-Control, X-File-Name, User-Agent, X-File-Size, If-Modified-Since, Depth, Content-Type < access-control-max-age: 86400 < cache-control: must-revalidate,no-cache,no-store < set-cookie: server_name_session=30cfff002de8f66adfef6602044f67bf; Max-Age=86400; httponly; path=/ < set-cookie: SITE_TOTAL_ID=177678c324d873e91d28df54dde6921d; Path=/; Max-Age=259200000; HttpOnly < <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Invalid SID value.</title> </head> <body><h2>HTTP ERROR 404 Invalid SID value.</h2> <table> <tr><th>URI:</th><td>/http-bind</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Invalid SID value.</td></tr> <tr><th>SERVLET:</th><td>org.jivesoftware.openfire.http.HttpBindServlet-5d6deb83</td></tr> </table> </body> </html> * Connection #0 to host zxkf.szrengjing.com left intact [root@yfw szrengjing.com]# curl -v \ > -H "Content-Type: text/xml" \ > -d '<body rid="123456794" sid="a1b2c3d4e5" xmlns="http://jabber.org/protocol/httpbind"><presence/></body>' \ > https://zxkf.szrengjing.com/http-bind * Trying 124.71.230.244... * TCP_NODELAY set * Connected to zxkf.szrengjing.com (124.71.230.244) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, [no content] (0): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=zxkf.szrengjing.com * start date: Oct 13 03:37:58 2025 GMT * expire date: Jan 11 03:37:57 2026 GMT * subjectAltName: host "zxkf.szrengjing.com" matched cert's "zxkf.szrengjing.com" * issuer: C=US; O=Let's Encrypt; CN=R12 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (OUT), TLS app data, [no content] (0): * Using Stream ID: 1 (easy handle 0x557eb0e85690) * TLSv1.3 (OUT), TLS app data, [no content] (0): > POST /http-bind HTTP/2 > Host: zxkf.szrengjing.com > User-Agent: curl/7.61.1 > Accept: */* > Content-Type: text/xml > Content-Length: 101 > * TLSv1.3 (OUT), TLS app data, [no content] (0): * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, [no content] (0): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS app data, [no content] (0): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * TLSv1.3 (OUT), TLS app data, [no content] (0): * TLSv1.3 (IN), TLS app data, [no content] (0): < HTTP/2 404 < server: nginx < date: Fri, 31 Oct 2025 09:25:24 GMT < content-type: text/html;charset=iso-8859-1 < content-length: 447 < access-control-allow-methods: CANCELUPLOAD, HEAD, MKCOL, UNCHECKOUT, POST, CHECKIN, CHECKOUT, PROPFIND, LOCK, VERSION-CONTROL, COPY, REPORT, OPTIONS, PUT, DELETE, GETLIB, MOVE, GET, UPDATE, PROPPATCH, UNLOCK < access-control-allow-headers: Destination, Overwrite, X-Requested-With, Cache-Control, X-File-Name, User-Agent, X-File-Size, If-Modified-Since, Depth, Content-Type < access-control-max-age: 86400 < cache-control: must-revalidate,no-cache,no-store < set-cookie: server_name_session=30cfff002de8f66adfef6602044f67bf; Max-Age=86400; httponly; path=/ < set-cookie: SITE_TOTAL_ID=a36bf08bc57f691dfd4687608744f2e2; Path=/; Max-Age=259200000; HttpOnly < <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Invalid SID value.</title> </head> <body><h2>HTTP ERROR 404 Invalid SID value.</h2> <table> <tr><th>URI:</th><td>/http-bind</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Invalid SID value.</td></tr> <tr><th>SERVLET:</th><td>org.jivesoftware.openfire.http.HttpBindServlet-5d6deb83</td></tr> </table> </body> </html> * Connection #0 to host zxkf.szrengjing.com left intact [root@yfw szrengjing.com]#
最新发布
11-01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值