如何使用C#登录网站并将数据传递给表单? [英] How to sign into a website and pass data to forms using C#?

查看:70
本文介绍了如何使用C#登录网站并将数据传递给表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请帮助我制作此C#应用程序.我想登录一个提供免费短信的网站.广告太多了,所以我决定为此写一个应用程序.

我已经尝试过的东西:
我使用了Web浏览器,导航到该站点并填写了凭据并成功登录:D.但是那个该死的网站也抛出了很多弹出窗口,我还不知道该如何处理.而且,抛出了两个javascript异常,我也不知道也要处理这些异常.

我需要的东西:
我需要有关使用其他方法登录网站的一些指导.我已经阅读了一些文章,例如.对不起,我不太了解该代码.请给我裸露的代码来执行此操作-不得有任何麻烦-请...
另外,我想将用户获取的文本提交到网站中存在的表单,我也需要知道这一点.请帮我.我是初学者.在此先多谢. :)

Hi,
Please help me out in making this C# application. I want to sign into a website which offers free SMS. It''s got too many ads, so I decided to write an application for it.

The things I''ve already tried:
I used a web browser, navigated to the site and filled the credentials and logged in successfully :D. But that damned site throws lots of popup windows too, and I don''t yet know to handle those. And also, a couple of javascript exceptions are thrown, and I don''t know to handle those too.

The things I need:
I want some guidance on logging into the website using some other method. I''ve read some articles, such as this one. I''m sorry, I don''t understand that code much. Please give me the bare code to do it - without any bells and whistles - please...
Also I want to submit text I get from the user to a form present in the site, and I need to know that too. Kindly help me out. I''m a beginner. Thanks a lot in advance. :)

推荐答案

指导-如果他们具有按需付费的选择,可以摆脱您不希望看到的所有废话,那就付钱.

如果您坚持要一无所获,那就去Google Fiddler.它将至少帮助您弄清楚如何发布文本.甚至可以让您弄清楚如何避免弹出窗口.
Guidance - if they have a pay-to-play option that gets rid of all the crap you don''t want to see, pay the money.

If you insist on trying to get something for nothing, google Fiddler. It will help you at least figure out how to post text. It may even allow you to figure out how to avoid the pop-ups.


这篇关于如何使用C#登录网站并将数据传递给表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆