用socket发送HTTP请求时出现这样的错误,求教
发布网友
发布时间:2022-05-01 07:34
我来回答
共1个回答
热心网友
时间:2022-04-12 16:54
测试
测试窗体只能用于来自本地计算机的请求。
SOAP
下面是一个 SOAP 请求和响应示例。所显示的占位符需要由实际值替换。
//////////////////////////////////////请求示例
POST /netfilter/UserLogon.asmx HTTP/1.1
Host: auth.stu.e.cn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/ClientLogon"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ClientLogon xmlns="http://tempuri.org/">
<userName>string</userName>
<password>string</password>
<userIp>string</userIp>
<hostName>string</hostName>
<userMac>string</userMac>
<userAgent>string</userAgent>
<isVisiteForeign>boolean</isVisiteForeign>
</ClientLogon>
</soap:Body>
</soap:Envelope>
//////////////////////////////////////响应示例
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ClientLogonResponse xmlns="http://tempuri.org/">
<ClientLogonResult>string</ClientLogonResult>
</ClientLogonResponse>
</soap:Body>
</soap:Envelope>