[Prev][Next][Index][Thread]
Re: client side post method
>I'am trying to use the Jigsaw client side API. It work fine but I wonder
>how to make a post method using the object request in an HttpManager ?
>I don't find any method to get an OutputStrean from the request to write on
>it.
Basically when integrating Jigsaw client side and Amaya I ended up with:
http_conn.setRequestMethod("POST");
http_conn.setDoOutput(true);
http_conn.setDoInput(true);
out = http_conn.getOutputStream();
out.write(postcommand, 0, len);
out.close();
http_conn.connect();
in = conn.getInputStream();
and read the answer.
http_conn is the HttpURLConnection (obtained by a cast from the
URLConnection).
hope this help,
Daniel