I have to use the post method. No name/value pairs either.
I have some perl code that works, I just need it in php.
my $req = HTTP::Request->new(
'POST' => 'https://www.bobshouse.com/sync'
);
$req->protocol( 'HTTP/1.0' );
$req->content_type( 'text/plain' );
$req->content( $content );
// Check to see if it worked
print STDERR $req->as_string() if DEBUG;
my $res = $ua->request( $req );
print STDERR $res->as_string() if DEBUG;
if ( $res->is_success() ) {
my @ = split( /\n/, $res->content() );
die( $data[1] ) unless $data[0];
print STDERR "SUCCESS!\n";
exit 0;
}
//
Anyone have any ideas? Is this even possible in PHP? This won't be run from a browser.