由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - https connection problem in C#
相关主题
批量下载mp3音频流文件最好用什么软件?超牛的debug
web services的安全性问题。Re: [转载] how would you do this?
页面上有没可能判断访问者用没用代理服务器?java + javascript open local file?
怎么做能提供RESTful的安全性?perl: how to get the filename from the full path name
股的霸强劲出手How to fire up MFI in C#?
AWS authentication 求推荐问一个C++函数Parameter的问题
这样读多个文件对吗?问一个打开文件的问题
[转载] Re: [转载] 这样读多个文件对吗?awk求救
相关话题的讨论汇总
话题: c#话题: https话题: connection话题: url话题: error
进入Programming版参与讨论
1 (共1页)
w*******u
发帖数: 15
1
I am trying to download a file with https connection in c#.
The url is like https://address/filename&username=xxx&password=xxx.
The C# code I used:
WebRequest myWebRequest = WebRequest.Create(url);
WebResponse myWebResponse = myWebRequest.GetResponse();
However, I got the following error:
Unhandled Exception: System.Net.WebException: The remote server returned an
error: (407) Proxy Authentication Required.
I could open the file in web browser. Also I could get the correct result
using Java.
URLC
X****r
发帖数: 3557
2
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework/2007-12/msg00097.html

an

【在 w*******u 的大作中提到】
: I am trying to download a file with https connection in c#.
: The url is like https://address/filename&username=xxx&password=xxx.
: The C# code I used:
: WebRequest myWebRequest = WebRequest.Create(url);
: WebResponse myWebResponse = myWebRequest.GetResponse();
: However, I got the following error:
: Unhandled Exception: System.Net.WebException: The remote server returned an
: error: (407) Proxy Authentication Required.
: I could open the file in web browser. Also I could get the correct result
: using Java.

w*******u
发帖数: 15
3
Thanks for the quick reply! I will try that

【在 X****r 的大作中提到】
: http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework/2007-12/msg00097.html
:
: an

1 (共1页)
进入Programming版参与讨论
相关主题
awk求救股的霸强劲出手
C语言程序静态库和动态库的创建及其应用AWS authentication 求推荐
xterm的title恢复问题 (转载)这样读多个文件对吗?
open an image file[转载] Re: [转载] 这样读多个文件对吗?
批量下载mp3音频流文件最好用什么软件?超牛的debug
web services的安全性问题。Re: [转载] how would you do this?
页面上有没可能判断访问者用没用代理服务器?java + javascript open local file?
怎么做能提供RESTful的安全性?perl: how to get the filename from the full path name
相关话题的讨论汇总
话题: c#话题: https话题: connection话题: url话题: error