Using Yun to send IFTTT POST request

Hi,

I’ve read several topics around this, but I can’t figure out how to actually make this work.
I’m looking for the most basic setup to send something to an IFTT Maker channel using the built in Yun WiFi. I’ve combined information from various posts and think I’m on the right track, but the trigger doesn’t fire. WiFi is working fine and serial monitor tells me the connection is working and the “sent” message also gets through, but no event is fired.

This is my code (event and key obviously set in the actual script);

#include <BridgeClient.h>
#include <BridgeServer.h>
#include <BridgeSSLClient.h>
#include <Bridge.h>
#include <Console.h>
#include <FileIO.h>
#include <HttpClient.h>
#include <Mailbox.h>
#include <Process.h>
#include <SPI.h>

BridgeSSLClient client;

void setup()
{
       Bridge.begin();
       Serial.begin(9600);
}

void loop()
{

       if (client.connectSSL("maker.ifttt.com", 80)) {
                Serial.println("connected");
                
                delay(5000);                          
                client.println("POST /trigger/[event]/with/key/[key] HTTP/1.1");
                client.println("Host: maker.ifttt.com");
                client.println("User-Agent: Arduino/1.0");
                client.println("Connection: close");
                client.println("Content-Type: application/x-www-form-urlencoded;");
                client.print("Content-length: 0");                                              

                Serial.println("sent");
       }else{
              Serial.println("connection failed");
              delay(1000);
       }
       if(client.connected()){
                   client.stop();   //disconnect from server
       }
       delay(2000);
    }

Any help would be much appreciated!