public class HttpSender extends Object
| Constructor and Description |
|---|
HttpSender() |
public String get(String url, Map<String,String> headers) throws IOException
url - request urlIOExceptionpublic String post(String url, String data, Map<String,String> headers) throws IOException
url - request urldata - json-encoded post bodyheaders - http headers to sendIOExceptionCopyright © 2015. All rights reserved.