in reply to Mechanize:submit_form issue.

If both ports are on the same server, I'ld guess one of them may be a https - port.
Try telnet host 7777 and once connected, type GET / HTTP/1.0 and press ENTER/RETURN twice. Read the reply and try again using the other port.