53°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • curl-test.php

    January 6, 2018
    1. <?php
    2. $ch = curl_init('https://tokens.indieauth.com/token');
    3. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    4. curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    5. 'test' => 'foo'
    6. ]));
    7. curl_setopt($ch, CURLOPT_HTTPHEADER, [
    8. 'Accept: application/json'
    9. ]);
    10. $response = curl_exec($ch);
    11. echo '<h2>Response</h2>';
    12. echo '<pre>'.htmlspecialchars($response).'</pre>';
    13. echo '<h2>Error Info</h2>';
    14. echo '<pre>'.curl_errno($ch).'</pre>';
    15. echo '<pre>'.curl_error($ch).'</pre>';
    Portland, Oregon • 49°F
    Sat, Jan 6, 2018 2:15pm -08:00
Posted in /code using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv