Http library requires Basic Auth functionality (1 post)

  1. FlashUK
    Posted 6 years ago #

    I am currently writing a plugin to update your Twitter status via the backend.

    Trying to keep to good practise, I am trying to use WP "Http.php" library to POST data "wp_remote_post()".

    Problem: There is no way to send 'Basic Auth' information with this function.

    By default, WP will try to use PHP's "http_request()" func in their http.php library.

    But there is no option to use the required 'httpauth' defined in the options are in the PHP manual (httpauth).

    I've never logged an issue with Trac before but I am willing to do so if this will fix the issue.

    Without it, plugins that require Basic Auth will have to use snoopy or worse - write their own.

Topic Closed

This topic has been closed to new replies.

About this Topic