PATH-INFO and QUERY-STRING

The PATH-INFO is the extra path data that follows the name of a servlet in a URL.

If there is a servlet named HelloWorld that is accessed by
http://localhost:8080/examples/servlet/HelloWorld
then the extra path data that follows the name of the servlet would be placed into the PATH-INFO request header field.

For example,
http://localhost:8080/examples/servlet/HelloWorld/hello+there/fred
would have a PATH-INFO request header field like this:
PATH-INFO: /hello+there/fred

It is possible to still have a QUERY-STRING following the PATH-INFO.

For example,
http://localhost:8080/examples/servlet/HelloWorld/hello+there/fred?fruit=apple
would have a PATH-INFO request header and a QUERY-STRING request header
PATH-INFO: /hello+there/fred
QUERY-STRING: fruit=apple

To send path info or query string data to a servlet, just append them to the URL for the servlet.