I have been provided a web interface(Form) URL with many fields in order to import a local file
to that website.
this is how the URL looks like:
There are fields like type of import(SBE, MIME) which is a radio button, input type(Excel,CSV,XML),
output type(Text, XML, HTML), a FileUpload control, user and password controls to authenticate before uploading the file and between other controls. I just mentioned this to give you an idea of how the form looks like.
I am trying to upload an .xls File programmatically from a C# console application using the HttpWebRequestClass but the response I get with the GetResponse() method is the HTML structure of the same form and at same time I debugged my code and I see statusCode = OK property, which for me this tell me that everything went OK and no error in the uploading.
honestly I don't know what response should I get, however when I upload the file manually the process works like a charm and I get a successful response and says that the file has been imported.
Any Idea how to upload this file with the other fields values to the mentioned URL using HTTP POST method programmatically?