[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 0x55dd989e8690)
* 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 08:41:19 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=a65fdf7026f86b882aa24da596e45305; 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="8bcy8362au" sid="8bcy8362au" 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]#
[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 0x556749a3f690)
* 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 08:42:06 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=f919b89e82b343cdd1f0e54478077ea3; 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="5u0sqpvmu9" sid="5u0sqpvmu9" 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]# <body xmlns='http://jabber.org/protocol/httpbind'
-bash: body: No such file or directory
[root@yfw szrengjing.com]# sid='abc123def456ghi789'
[root@yfw szrengjing.com]# wait='60'
[root@yfw szrengjing.com]# ver='1.6'
[root@yfw szrengjing.com]# from='zxkf.szrengjing.com'
[root@yfw szrengjing.com]# hold='1'
[root@yfw szrengjing.com]# ack='1'>
-bash: syntax error near unexpected token `newline'
[root@yfw szrengjing.com]# </body>
-bash: syntax error near unexpected token `newline'
[root@yfw szrengjing.com]#
最新发布