commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenny Smith <tomcat-u...@journalscape.com>
Subject [httpclient] How to post data without a parameter name?
Date Wed, 19 Feb 2003 18:51:19 GMT
Hi all,

I'm porting a legacy perl app to Java and I'm having some trouble 
figuring out how to use the PostMethod class. The legacy app does 
something similar to:

------------ snip ---------------
POST / HTTP/1.1
Host: myhost.atwork.com
Content-Type: text/xml
Content-Length: 3456
Connection: close

<?xml version="1.0"?>

<myroot>
    ...
</myroot>

------------ snip ---------------

However, I can't find any sort of methods on the PostMethod to just set 
the content of the request, only for setting named parameters. Am I 
looking in the wrong place?

Any help is appreciated.
Thanks,
Kenny Smith
JournalScape.com


Mime
View raw message