• Post Reply Bookmark Topic Watch Topic
  • New Topic

Apache's HttpClient can't not URL Encode any ideas maybe different client?  RSS feed

 
steve labar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following needs:
1. need to be able to send http and https requests and get response back to be able to look through
2. basic auth and ntlm would be nice
3. cannot have special characters URL Encoded because it changes the values returned by the variables in the
request in the response


Currently, i'm using apache client it has everything i'm looking for except it URLEncodes and i can't seem to figure out how to turn it off. I have thought about altering the src but it has been a bit harder than I had anticipated. Is there something else i could use that would be better for my needs? Any ideas how I can fix this issue any help would be much appreciated.

 
Srikanth Nutigattu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Steve,

Could you please elaborate on what do you mean by
cannot have special characters URL Encoded because it changes the values returned by the variables in the
request in the response

Special characters are always encoded when sending them as part of URL, since URL string cannot have special characters. (eg: space is replaced with %20).
So, what is the problem you are facing?

Regards,
Srikanth.N
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!