I thought this would be simple but I can't figure it out. I have a form with this structure:
<form name="input" action="DOTHINGS" method="POST">
<textarea rows="10" cols="30" name="rules"></textarea>
<textarea rows="10" cols="30" name="facts"></textarea>
<br><input type="submit" value="Submit">
So I want to post to the rules and facts text areas and submit. I have tried the following:
curl -F "rules=@/directory/file.txt" -F "facts=@/directory/file.txt" http://localhost:1112/
curl -X POST -d "rules=junktext" http://localhost:1112/
curl --data "rules=junkdata&facts=junkdata" http://localhost:1112/
No matter what I try I get The requested resource could not be found
as a response.
I first thought my localhost:1112 was not accessible so I tried variations of that and did a basic curl localhost:1112
which returned the content of the site so it seems it's able to access that URL. However I just can't get anything to POST. Is there something wrong with my syntax or with the form itself?