Title: Basic Authentication
Last modified: August 31, 2016

---

# Basic Authentication

 *  Resolved [steenf](https://wordpress.org/support/users/steenf/)
 * (@steenf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/)
 * Hi
    How to use basic authentication with JSON Import? Regards Steen
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290170)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Unfortunately, I’m not sure if this is possible, due to how WordPress’ internal
   HTTP API works… 🙁
    You could maybe try a way that works for URLs in the browser,
   where you add the username and password to the URL:
 *     ```
       http://username:password@example.com/table.json
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [steenf](https://wordpress.org/support/users/steenf/)
 * (@steenf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290338)
 * Thanks
    It was an error on api, but it still does not work [https://username:password@foreninglet.dk/api/members?version=1](https://username:password@foreninglet.dk/api/members?version=1)
   I can send username and password to demo web?
 * Have tried from another web without authentication and it works
    but how do I
   make table header?
 * Steen
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290339)
 * Hi Steen,
 * I’m not sure what you mean, I’m afraid.
 * It seems like you are trying to access an arbitrary JSON API. This won’t work.
   TablePress only understands its own JSON format, that is a two-dimensional array
   that resembles a table. It’s not possible to use any existing JSON API, I’m afraid.
 * Regards,
    Tobias
 *  Thread Starter [steenf](https://wordpress.org/support/users/steenf/)
 * (@steenf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290340)
 * Okay
    It is data from external side whit authentication .
 * Same format on this page without authentication.
 * The json format I try to import look like this :
    [http://dpit.dk/test/steen.php](http://dpit.dk/test/steen.php)
   But no table header in import tabel. Steen
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290341)
 * Hi,
 * yes, this JSON format will not work, I’m afraid (regardless of authentication
   or not). It is not a JSON format that TablePress can understand and turn into
   a table.
 * Your best chance probably is to develop an intermediate script that retrieves
   the data from the API (with authentication), and then transforms it to a table
   format (i.e. a two-dimensional array). This can then be imported into TablePress.
 * Regards,
    Tobias
 *  Thread Starter [steenf](https://wordpress.org/support/users/steenf/)
 * (@steenf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290342)
 * Okay thanks
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290344)
 * Hi,
 * sure, you are very welcome! Sorry that I couldn’t offer a working solution here.
 * Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Basic Authentication’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/basic-authentication-1/#post-7290344)
 * Status: resolved