Net.Builder b = game.net.req("http://www.posttestserver.com/post.php").setPayload(data);
/** * Performs an HTTP POST request to the specified URL. */ public RFuture<String> post(String url, String data) { return req(url).setPayload(data).execute().map(GET_PAYLOAD); }
/** Configures the payload of this request as raw bytes with content type * "application/octet-stream". This converts the request to a POST. */ public Builder setPayload(byte[] payload) { return setPayload(payload, "application/octet-stream"); }
/** * Performs an HTTP POST request to the specified URL. */ public RFuture<String> post(String url, String data) { return req(url).setPayload(data).execute().map(GET_PAYLOAD); }
@Override public void post(String url, String data, Callback<String> callback) { req(url).setPayload(data).execute(adapt(callback)); }
/** Configures the payload of this request as a UTF-8 string with content type "text/plain". * This converts the request to a POST. */ public Builder setPayload(String payload) { return setPayload(payload, "text/plain"); }
/** Configures the payload of this request as a UTF-8 string with content type "text/plain". * This converts the request to a POST. */ public Builder setPayload(String payload) { return setPayload(payload, "text/plain"); }
/** Configures the payload of this request as raw bytes with content type * "application/octet-stream". This converts the request to a POST. */ public Builder setPayload(byte[] payload) { return setPayload(payload, "application/octet-stream"); }