Create HTTP post request and receive response using C# console application -


i need post data url (https://somesite.com) download file in responsestrem based on parameters posted. how can using c# console application?

parameters: filename, userid, password, type

take @ system.net.webclient class, can used issue requests , handle responses, download files:

http://www.hanselman.com/blog/httppostsandhttpgetswithwebclientandcandfakingapostback.aspx

http://msdn.microsoft.com/en-us/library/system.net.webclient(vs.90).aspx


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -