0

There is a html page that has a form on it, with a text field named "text". When you enter text into that that field and submit it, it goes back to the python server, gets processed, and a new html page is sent out in response.

I'm working with a java servlet and need to post to the python server. The easiest way I can think of to do this is to format the url such that the the text I would like to enter into the text field (whose name is 'text'), I somehow encode that information in the url.

In Java, I'd simply append to the end of the url [text=theTextIdLikeToProcess]. But, that doesn't work for the python server. It is expecting a dictionary, and it tries to search that dictionary for a key labeled 'text'.

So, how to I encode a url to give a post command that will put the key 'text', with a value I want, in the dictionary?

thanks!

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by alc6379
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.