• 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

How do I encode a parameter in an HTTP request?

 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my code:

I am trying to send the text of an XML file, but I am getting the exception:
java.lang.IllegalArgumentException: Illegal character(s) in message header value: "<!-- Lone Tree Aloha XML Order Interface -->
<!-- Copyright 2003, Lone Tree Technology, Inc. -->
<!-- www.LoneTreeTechnology.com -->
<!-- info@LoneTreeTechnology.com -->
<!-- XML Interface Order File version 1.0 -->
<!-- This is a sample order for use with the Aloha XML Order Interface. All
Elements and Attributes are explained. -->
<POSREQUEST ExtTermID="001" ExtRequestID="0009001" ReqAck="N">
<!-- POSREQUEST is the top level element. It is REQUIRED. POSREQUEST has

There are still problems with the XML; same problem with "ISO-8859-1".
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Long text should be sent as a POST, not a GET.
 
"To do good, you actually have to do something." -- Yvon Chouinard
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic