I’m making post requests using httpclient, and some of the strings have a lot of quotes, is there anything else I can do besides escaping them. It takes a long time to escape them all.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should probably look into a proper templating system like FreeMarker or Velocity or something like that. Embedded strings just make you look bad, besides being a pain to maintain.