This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
setRequestProperty does not what you think it does. It does not set properties that will be part of the request query. Instead, modify the URL:
Note that I just added the request key and value directly. In practice, you should use URLEncoder.encode("DocId", "UTF-8") and URLEncoder.encode("NOINDEX.A1001001A09E14A73748F00664.A09E14A73748F00664.1000", "UTF-8"). Or a different encoding if you like.