This project is to be programmed in C# ONLY!!!
Take a look at the following website:
<[login to view URL]>
You will note there is the option to validate a html file via an upload. I want a method that will effectively do a HTTP post to this site (and it's script) to send a file of my choosing (so that means writing the correct headers and content attachment stuff) and simply return the resulting page as a string.
Simply embedding a browser object and manipulating the DOM is not an acceptable way to solve this problem - it has to be done the "proper" way - via a http POST (and an immediate http GET for the result).
The method is to take 2 parameters - the target for the POST (as a string) and the file to upload (as a string). More parameters may be added if required (possibly for html form names/fields, etc...). A string will be returned containing the resulting page data.
This function should really lay down the framework for future posting of data to webforms (via http header manipulation). As a further test that this method is written properly, the code should also work with the following online CSS checker:
<[login to view URL]>
This contains a file checker that works in a similar way to the html validator. This method will need to be proven for both checkers!
In summary
- C# only
- No embedded browser objects
- Should work via HTTP POST/GET manipulation
**Additional Information
**This project is just a function to return the resulting string so it could conceivably be used in a console app, a web app or a winforms app.
For programs illustrating the function in operation, I would like to see a winform app that just dumps the resulting string into a multiline textbox
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables
3) All deliverables will be considered "work made for hire" under U.S. ,U.K. and International Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components).
## Platform
C# (.net Framework)