Chris Brierley thebrier@gmail.com wrote:
As Justin said, you need to be able to upload the local file via an HTTP POST. You can use 'curl' to do this. The following seems to work. It calls curl, collects the results in a temporary file, and then opens that file.
curl -o /tmp/`id -u`/results.html -F
uploaded_file=@$TM_FILEPATH;type=text/html http://validator.w3.org/check && open /tmp/`id -u`/results.html
OK, not really understanding what all this mean, but I've just copy-pasted it and it *works fine*. Perhaps this could be added in the standard Commands, alongside with CSS validator and so on?
(Trying to modify the command for CSS validator does not seem to work : curl -o /tmp/`id -u`/results.html -F uploaded_file=@$TM_FILEPATH;type=text/css http://jigsaw.w3.org/css-validator/check && open /tmp/`id -u`/results.html )
Thanks a lot to both and have a nice day|night,