WordPress.org

Ready to get started?Download WordPress

Forums

CSV to SortTable
[resolved] password protected file "HTTP Basic: Access Denied" (2 posts)

  1. bswarnock
    Member
    Posted 1 year ago #

    Is it possible to pull in a csv file accessed through a https weblink that is password protected. If I type the link in to any browser and do not put it the login and password it returns what the error shows: "HTTP Basic: Access Denied". I think basically I need a step to put in the login and password for the file for this plugin to work for my purpose.

  2. Shaun Scovil
    Member
    Plugin Author

    Posted 1 year ago #

    At the moment, this is not a supported feature. It may become a feature in a future release, but that would require a significant investment of time and may not be used by many people.

    This plugin is an open source project, so if you are a developer (or know anyone who is) that is interested in contributing, please send a pull request at: https://github.com/sscovil/csv-to-sorttable

    Developer Notes

    Right now, the plugin uses a core WordPress function called wp_remote_fopen() to import the CSV file data. For security and performance reasons, I would like to continue using that function in most cases. However, a different method would need to be used for password protected files.

    One possible solution could be file_get_contents(), using a technique like the one described here: http://www.electrictoolbox.com/php-file-get-contents-sending-username-password/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.