WordPress.org

Ready to get started?Download WordPress

Forums

Http library requires Basic Auth functionality (1 post)

  1. FlashUK
    Member
    Posted 5 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.
    http://uk.php.net/manual/en/function.http-request.php

    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