You should use a html
parser to extract the binary string and I think that curl
cannot do that. One of many alternatives is perl and its mojolicious
module that lets you post
the page and use a DOM
parser to extract the content, like this:
perl -Mojo -E '
say p(q{http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/Binary_To_Text.asp}
=> form
=> { ToBinary => q{fubar} })
->dom
->at(q{#ToText})
->text'
It yields:
0110011001110101011000100110000101110010