CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - webclient uploaddata csharp
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - webclient uploaddata csharp - List
[
CSharp
]
c2008_HTTP
DL : 0
C#里System.Web空间下提供了一个叫做WebClient的对象,使用此对象就可以使C#直接对服务器发送WEB客户端的请求。那么我们要对服务器提交POST方法那么就必须使用其UploadData()方法才行。首先把要请求的信息先转换为字节(因为POST提交的是字符的流数据),然后再做为UploadData()的参数。使用UploadData()进行数据提交,最后返回,POST的回馈信息。如下: -C# Lane System.Web to provide a space called the WebClient object, you can use this object to make C# Directly to the WEB server send the client request. So we have to submit to the server POST method then you must use its UploadData () methods do. First to request the information was first converted to byte (because POST is the flow of data characters), and then again for UploadData () parameters. Use UploadData () for data submission, the final return, POST information feedback. As follows:
Date
: 2025-07-01
Size
: 8kb
User
:
lanzyer
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.