从桌面应用程序使用Post方法导航到我的网站 [英] Navigate to my web site with Post method from Desktop application

查看:81
本文介绍了从桌面应用程序使用Post方法导航到我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那里

我似乎一无所获.在所有帮助中,它始终说明如何从网页获取数据.我不想获取数据,我想从Windows桌面应用程序导航到那里.
我希望能够从桌面应用程序(仅对C#感兴趣)导航到我的网站,并提交我的帖子数据.我不想从网站上阅读内容,我想导航到该网站,但不使用方法get,因为那样很容易,但是方法发布.

使用桌面应用程序的客户端将单击此桌面应用程序上的按钮,该按钮将导航到带有发布数据的网站,检查其凭据,然后如果可以,则将其登录到该网站.

我可以这样做:
System.Diagnostics.Process.Start("https://www.supremweb.com/taxi/buydriverdownloadversion.aspx?txtUserName=sad&txtpassword=happy");

现在这很容易,但是我不希望发布.上面的方法是get.
在Web站点上的C#.NET中获取表单数据没有问题,但是当我导航到该站点时如何在其中包含Post数据?

我不想在浏览器的URL BAR中看到任何内容,甚至都没有加密.

非常感谢任何对此提供帮助的人.

Hi There

I seem to get nowhere. All over the help it always explains how to get data from a web page. I don''t want to get data, I want to send it there as I navigate there from my Windows desktop application.
I want to be able to navigate to my web site, and also submit my post data, from a desktop application (only interested in C#). I do not want to read from the web site, I want to navigate to the web site but not use method get, as that would be easy but method post.

The client using the Desktop application will click a button on this desktop application, that will navigate to the web site with the post data, check his credentials and then if ok log him into the site.

I can do this:
System.Diagnostics.Process.Start("https://www.supremweb.com/taxi/buydriverdownloadversion.aspx?txtUserName=sad&txtpassword=happy");

Now this is easy but I want Post not Get. The method above is get.
I have no issues with getting the form data in C#.NET on the web site, but how would I include the Post data in it as I navigate to the site?

I don''t want to see anything in the URL BAR of the browser, not even encrypted.

Many Thanks for anyone helping me on this.

推荐答案

一个想法是在本地动态创建并保存带有帖子数据的html页面,该页面将提交到所需的网站网站一旦打开.提交完成后,可以删除此html文件.
One idea is to dynamically create and save an html page locally with the post data, which will submit to the required web site once opened. This html file can be deleted once the submit has been completed.


这篇关于从桌面应用程序使用Post方法导航到我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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