Title: Http library requires Basic Auth functionality
Last modified: August 19, 2016

---

# Http library requires Basic Auth functionality

 *  [FlashUK](https://wordpress.org/support/users/flashuk/)
 * (@flashuk)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/http-library-requires-basic-auth-functionality/)
 * 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](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)](http://uk.php.net/manual/en/http.request.options.php#http.request.options.auth).
 * 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.

The topic ‘Http library requires Basic Auth functionality’ is closed to new replies.

## Tags

 * [http api](https://wordpress.org/support/topic-tag/http-api/)
 * [wp_remote_post](https://wordpress.org/support/topic-tag/wp_remote_post/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [FlashUK](https://wordpress.org/support/users/flashuk/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/http-library-requires-basic-auth-functionality/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
