title: How to setup a callback URL for an android application to receive POST requests from an API?
body: <p>I would like to integrate a Withings smart scale into an Android app I am developing. I am following the getting started instructions in the withings developer documentation <a href="http://developer.withings.com/oauth2/#" rel="nofollow noreferrer">here</a>. For this I need to register my app <a href="https://account.withings.com/partner/add_oauth2" rel="nofollow noreferrer">here</a> and it requires a &quot;Callback URL&quot;. Here are the details Withings provides for the Callback URL:</p>
  <blockquote>
  <p>Partner URL called by our system to send notifications through HTTP POST requests. Make sure that your server can handle a HTTP HEAD request called to verify the validity of your url.</p>
  <p>Your URL must :</p>
  <ul>
  <li><p>be a valid URL, provided as a URL-encoded string. Please refer to w3schools URL encoding reference to learn more about URL encoding.</p>
  </li>
  <li><p>not be greater than 255 characters.</p>
  </li>
  <li><p>neither contain an IP or 'localhost'. Only port 80 and 443 are allowed.</p>
  </li>
  </ul>
  </blockquote>
  <p>How do I setup a callback URL for an android app that will be able to receive POST requests?</p>