Request:
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded0=example.getStateName&1=10023Response:
HTTP/1.1 200 OK
Content-type: text/plainNew YorkHTTP x/www-form-urlencoded namedArgs getTeam
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded0=example.getTeam&state=New%20York&sport=BaseballHTTP/1.1 200 OK
Content-type: multipart/mixed, boundary=B--BYankees
--BMets
--BHTTP x/www-form-urlencoded unicode addUser
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded0=example.addUser&fname=Igna%ACio&lname=SanchezHTTP with multipart/form-data
Request:
POST /some/resource HTTP/1.1
Content-type: multipart/form-data, boundary=AaB03x--AaB03x
content-disposition: form-data; name="field1"Joe Blow
--AaB03x
content-disposition: form-data; name="pics"; filename="file1.gif"
Content-type: image/gif
Content-Transfer-Encoding: binary
...contents of file1.gif...
--AaB03x--Response:
HTTP/1.0 200 OK
Content-type: text/plainOKUploading multiple files with unicode
POST /foo HTTP/1.0
Content-type: multipart/form-data, boundary=AaB03x--AaB03x
content-disposition: form-data; name="field1"Joe Blow
--AaB03x
content-disposition: form-data; name="pics"
Content-type: multipart/mixed, boundary=BbC04y--BbC04y
Content-disposition: attachment; filename="file1.txt"
Content-Type: text/plain; charset=UNICODE-1-1
Content-Transfer-Encoding: binary... contents of some unicode file.txt ...
--BbC04y
Content-disposition: attachment; filename="file2.gif"
Content-type: image/gif
Content-Transfer-Encoding: binary...contents of file2.gif...
--BbC04y--
--AaB03x--XML and EMail
HTP Request
POST /x/foo/bar HTTP/1.0
reply-to-url: [email protected]
message-id: abc123
aynch: required0=getAuthorization&1="bobjones"HTTP Response
HTTP/1.0 200 OK
delivered-to: [email protected]
Content-length: 0
Mail/SMTP Response
To: [email protected]
From: [email protected]
in-reply-to: abc123
content-type: text/xml<?xml version="1.0"?>
<this><is /><xml /></this>
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded0=example.getStateName&1=10023Response:
HTTP/1.1 200 OK
Content-type: text/plainNew YorkHTTP x/www-form-urlencoded namedArgs getTeam
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded0=example.getTeam&state=New%20York&sport=BaseballHTTP/1.1 200 OK
Content-type: multipart/mixed, boundary=B--BYankees
--BMets
--BHTTP x/www-form-urlencoded unicode addUser
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded0=example.addUser&fname=Igna%ACio&lname=SanchezHTTP with multipart/form-data
Request:
POST /some/resource HTTP/1.1
Content-type: multipart/form-data, boundary=AaB03x--AaB03x
content-disposition: form-data; name="field1"Joe Blow
--AaB03x
content-disposition: form-data; name="pics"; filename="file1.gif"
Content-type: image/gif
Content-Transfer-Encoding: binary
...contents of file1.gif...
--AaB03x--Response:
HTTP/1.0 200 OK
Content-type: text/plainOKUploading multiple files with unicode
POST /foo HTTP/1.0
Content-type: multipart/form-data, boundary=AaB03x--AaB03x
content-disposition: form-data; name="field1"Joe Blow
--AaB03x
content-disposition: form-data; name="pics"
Content-type: multipart/mixed, boundary=BbC04y--BbC04y
Content-disposition: attachment; filename="file1.txt"
Content-Type: text/plain; charset=UNICODE-1-1
Content-Transfer-Encoding: binary... contents of some unicode file.txt ...
--BbC04y
Content-disposition: attachment; filename="file2.gif"
Content-type: image/gif
Content-Transfer-Encoding: binary...contents of file2.gif...
--BbC04y--
--AaB03x--XML and EMail
HTP Request
POST /x/foo/bar HTTP/1.0
reply-to-url: [email protected]
message-id: abc123
aynch: required0=getAuthorization&1="bobjones"HTTP Response
HTTP/1.0 200 OK
delivered-to: [email protected]
Content-length: 0
Mail/SMTP Response
To: [email protected]
From: [email protected]
in-reply-to: abc123
content-type: text/xml<?xml version="1.0"?>
<this><is /><xml /></this>
未处理的“System.Net.Sockets.SocketException”类型的异常出现在 system.dll 中
其他信息:通常每个套接字地址 (协议/网络地址/端口)
只允许使用一次。