commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenny Smith <>
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 ---------------
Content-Type: text/xml
Content-Length: 3456
Connection: close

<?xml version="1.0"?>


------------ 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.
Kenny Smith

View raw message