SHARE
TWEET

code

a guest Jun 17th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. String url="https://site/api/segments/segmentId/contact/contactId/add";
  3.  URL serverUrl = new URL(url);
  4.         HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();
  5.         urlConnection.setRequestMethod("POST");
  6.         urlConnection.addRequestProperty("Authorization", getBathicAuthPayLoad());
  7.         urlConnection.connect();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top