Open flakey-bit opened 6 years ago
As it turned out, SOAP interfaces for HTML/CSS validators are largely deprecated as of now, and the recommended approach is to use the following API: https://validator.w3.org/docs/api.html So it will take some time to rewrite associated library code for this new API.
A file of 140Kb is sufficent to cause it to blow up (the issue is that the CSS is being added as a url-parameter "text" which blows out the URI length.
I've managed to work around the issue by invoking the API as a multipart/form-data POST (RFC2388 - see http://www.ietf.org/rfc/rfc2388.txt)
I used the FormUpload class here (also see this post) however RestSharp might be a better option.
code as follows: