Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem while getting Input Stream, which contains ? mark in it.

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a servlet which will read the content from the input stream, and the stream contains a url with parameter in it and the url(in stream) contain ?(question) marks.

its not getting the content properly, it receives all the data after the ?mark.

please help me,

Thanks In Advance,
Bennet
 
dileep keely
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show/provide the URL in question and the sample code what you have tried to fetch ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64688
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The data in your URL must be properly URL-encoded. See java.net.URLEncoder.
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.

Sorry for the later reply.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic