I decided to combine my website with my twitter account. In order to use it properly, I wanted to post a tweet. I decided to go with the very simple class TwitterAPIExchange from here: https://github.com/J7mbo/twitter-api-php
I tested it on my Linux server and it all works well. But I wanted to use this tool from my Windows server. This is my set up: Windows 2012, IIS 8, PHP.
Here my test code
// Setup
$settings = array( ... );
$url = 'https://api.twitter.com/1.1/statuses/update.json';
// Post the data
$requestMethod = 'POST';
$postfields = array('status' => 'Hello World');
$twitter = new TwitterAPIExchange($settings);
$json = $twitter->buildOauth($url, $requestMethod)->setPostfields($postfields)->performRequest();
var_dump($json);
On the windows machine, it returns
bool(false)
all the time! What does that mean? Is it an issue with curl and IIS? I read several articles online about it but none helped me so far. Any input is very appreciated!