---
title: "如何发送表单"
author: "cjc"
date: "2004-08-23T21:35:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2004-08-23T21:35:00Z"
id: 402622
url: "https://cjc.iteye.com/blog/402622"
---

&lt;script&gt;function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}&lt;/script&gt;

## 请教高手如何用c#向一个服务器的具体端口发送表单，然后接收服务器传回的认证信息？ 我曾经试着用WebClient的UploadData方法，但是总是收到服务器的消息“密码错误”，请教该如何做？有c#代码更好，谢谢。