Hello
I am trying to manually do a behind-the-scenes HTTP POST through telnet on 127.0.0.1 port 8080 with
TomCat 6 server running.
The problem is that it will not work.
I have the following
servlet (BeerSelect.java):
and the following model
Java class:
Everything works fine when I use
http://localhost:8080/Beer-v1/form.html in my browser and hit 'submit'.
The resulting servlet-processed page is shown to me with the correct output:
Beer Selection Advice
try: Jail Pale Ale
try: Gout Scout
However, when I try to do a manual HTTP POST in telnet the following error is returned after 2x hit enter:
I am simply trying to pass a parameter to get the page to work.
Is it possible to do a POST in telnet and upon refreshing the page in the browser to get the post-resulted page?
Perhaps that cannot be done because when you refresh the page a simple GET would be done... hm.
What am I not understanding or doing wrong?
Thanks,
--
Ryan