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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -