在网站上上传 csv 文件并获取结果
亲爱的朋友们 我有一个控制台应用程序,我想首先登录,然后按下按钮,引导我进入文件上传表单。在文件上传表单中,我想上传 csv 文件,然后在单击提交按钮后重定向到下一个表单,然后我想要以获得该形式的响应。 任何人都可以帮助我从 C# 控制台应用程序执行此操作吗? 谢谢。
Dear friends
I have a console application in which i want to first sign in and then I press button which directs me to file upload form .In file upload form I want to upload a csv file and then redirect to next form after clicking submit button then i want to get response of that form .
can any one help me to do this from C# console application?
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想从控制台应用程序上传网站上的文件,
那么您应该有有关 FTP 凭据的信息。
if you want to upload a file on a website from a console application,
then you should have information about FTP credentials.
如果你想做一个真正的http传输,你需要创建一个http请求,我环顾了一下,发现了这个: 使用HTTPWebrequest上传文件(multipart/form-data),似乎是对的。我目前正在 python 中做类似的事情。
If you want to do a real http-transfer you need to create a http request, I looked around a little bit and found this: Upload files with HTTPWebrequest (multipart/form-data), seems to be right. I'm doing something similar in python currently.