I'm trying to add a line to my functions.php that does a behind-the-scenes HTTP request submitting some user information to a mailing list URL I have. I'm trying to test the code at the moment, but nothing seems to be working.
I have tried the following:
$url = 'blabla.org/mailinglist/add?' . $user_email; $request = new WP_Http; $result = $request->request($url);
Neither have worked. However, if I Just copy and paste the URL into my web browser, it works fine. Please help!