• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

howto send post request in jsp without an encoded body

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

please excuse my english, it is not my mother tongue.

I have a problem when trying to send a post request through a jsp page and i didn't find any answers asking my friend google, so I hope that I can find some help here (again:).

In my app I have a java class which sends not encoded plain text to a servlet (it is requested like that). Similar to this:



Now I want to make a jsp page, for debugging reasons, that makes the same post request. Similar to this:



But I can see, listening to my network interface, that the content of the post request is encoded (urlencoded i guess).
So my question is:
How can I send not encoded content through jsp?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. And you shouldn't. The contents of a request should always be encoded. Otherwise, parsing it could result in errors if certain characters are used in the parameter names or values.
 
Space pants. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic