Fake a form submission with C# WebClient

后端 未结 6 1043
谎友^
谎友^ 2020-11-30 14:40

I need to call a web and retrieve the resulting data from the model in my asp.net mvc application. When accessed on the web, the form looks like this:



        
6条回答
  •  野性不改
    2020-11-30 15:03

    These things have a habit of becoming more and more complex, for example should you need to handle cookies, authentication or multipart form uploads for uploading files etc. I suggest using curl (http://sourceforge.net/projects/libcurl-net/)

提交回复
热议问题