从网站登录到另一个站点的HTTPS

编程入门 行业动态 更新时间:2024-10-25 00:27:44
本文介绍了从网站登录到另一个站点的HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是新来的StackOverflow,我有一个问题想问你:

i'm new to stackoverflow and I have a question for you:

我必须从我的wesite做一个自动登录到其他外部网站(不是我)。

I have to do an automatic login from my wesite to another external website (not mine).

本网站使用https,当我在网站上的地址去这问我(与经典弹出的形式),输入用户名和密码。我试图做一个POST这样

This site use https and when i go on the site address it ask me (with the classical popup form) to enter username and password. I've tried to do a POST in this way

的www.terminally-incoherent/blog/2008/05/05/send-a-https-post-request-with-c/

其中字符串post_data我已经把用户名= XXXX和放大器;密码= XXXX

where in the string post_data I have put "Username=xxxx&Password=xxxx"

但不工作;在code退换是401:未经授权

but doesn't work; the code returned was 401: Unauthorized.

有什么建议?

感谢您!

推荐答案

您需要设置凭据?的msdn.microsoft/en-us/library/system.httpwebrequest.credentials.aspx

更多推荐

从网站登录到另一个站点的HTTPS

本文发布于:2023-06-07 05:56:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/568581.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网站登录   站点   HTTPS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!