Hello,
I try to add my subscriber to aweber with the basic aweber link but doesn't working with curl.
When I try this in firefox it works:
http://www.aweber.com/scripts/addlead.pl?listname=xxx&meta_adtracking=test&name=xxx&email=xxx&
meta_message=1
First I thought there was a problem with my curl parameters, but then I realized it is not working even if I omit all the parameter values and put the static values in the above URLs, still not working.
Any help would be appreciated because I have been struggling with it for 2 days...:(
thanks,
Gery
I try to add my subscriber to aweber with the basic aweber link but doesn't working with curl.
When I try this in firefox it works:
http://www.aweber.com/scripts/addlead.pl?listname=xxx&meta_adtracking=test&name=xxx&email=xxx&
meta_message=1
First I thought there was a problem with my curl parameters, but then I realized it is not working even if I omit all the parameter values and put the static values in the above URLs, still not working.
Any help would be appreciated because I have been struggling with it for 2 days...:(
thanks,
Gery
Hi Gery,
What cURL settings are you using?
What do you see when you add Debugger and try the cURL submission? You should get a printout of the cURL info and possibly also an error message back from AWeber.
Bob
What cURL settings are you using?
What do you see when you add Debugger and try the cURL submission? You should get a printout of the cURL info and possibly also an error message back from AWeber.
Bob
Please find attached my settings.
http://siteground168.com/~options0/msg/curl.pdf
http://siteground168.com/~options0/msg/curl.pdf
Hi Gery,
I don't see any debugger output there?
I think that you need to reduce the Target URL to just http://www.aweber.com/scripts/addlead.pl
Then add extra lines to the Custom Code action:
BTW I've copied your name and email lines here but I'm not clear what they are suppose to do?
later: In your PM you included this message back from Aweber "message=emailinvalid&data=email" - that should tell you that the email address you are sending i.e. 'email' is being rejected because it isn't a valid email.
Bob
I don't see any debugger output there?
I think that you need to reduce the Target URL to just http://www.aweber.com/scripts/addlead.pl
Then add extra lines to the Custom Code action:
<?php
$form->data['name'] = 'name';
$form->data['email'] = 'email';
$form->data['listname'] = 'xxxxx';
$form->data['meta_adtracking'] = 'test';
$form->data['meta_message'] = 1;
?>
and add matching lines to the cURL Fields map box:
name=name
email=email
listname=listname
meta_adtracking=meta_adtracking
meta_message=meta_message
BTW I've copied your name and email lines here but I'm not clear what they are suppose to do?
later: In your PM you included this message back from Aweber "message=emailinvalid&data=email" - that should tell you that the email address you are sending i.e. 'email' is being rejected because it isn't a valid email.
Bob
Unfortunately still nothing. From the debug it seems that the variable are still static, it is using email and name instead of what I have put into the form. here is the details. I replaced confidential data with xxx the rest is unchanged. That is why aweber says it is invalid email, because the email value is not updated based on the form, it stays email...:(
Array
(
[chronoform] => chrono_test
[event] => submit
[name] => name
[email] => email
[button2] => Submit
[page_url] => hrono_test
[visitor_ip] => xxx
[id] => 35
[listname] => xxx
[meta_adtracking] => test
[meta_message] => 1
[curl] => <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://www.aweber.com/form-sorry.htm?message=emailinvalid&data=email">here</a>.</p>
</body></html>
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[1] => Array
(
[DB Save] => Array
(
[Queries] => Array
(
[0] => INSERT INTO `nhchronoengine_chronoforms_datatable_chrono_test` (`name`, `email`, `button2`, `page_url`, `visitor_ip`, `user_id`, `uniq_id`, `created`) values ('guillome', 'xxx', 'Submit', 'hrono_test', 'xxx', '0', '3e32a88261281cade01115421c6a91833805cb8b', '2014-11-01 19:42:26');
)
)
)
[3] => Array
(
[Curl] => Array
(
[0] => CURL OK : the CURL function was found on this server.
[1] => $curl_values: name=name&email=email&listname=xxx&meta_adtracking=test&meta_message=1
[2] => curl_target_url: http://www.aweber.com/scripts/addlead.pl
[3] => curl_errors:
[4] => curl_info: Array
(
[url] => http://www.aweber.com/scripts/addlead.pl
[content_type] => text/html; charset=iso-8859-1
[http_code] => 302
[header_size] => 340
[request_size] => 222
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.467849
[namelookup_time] => 0.032736
[connect_time] => 0.068386
[pretransfer_time] => 0.068522
[size_upload] => 81
[size_download] => 256
[speed_download] => 547
[speed_upload] => 173
[download_content_length] => 256
[upload_content_length] => 81
[starttransfer_time] => 0.467793
[redirect_time] => 0
[certinfo] => Array
(
)
[redirect_url] => http://www.aweber.com/form-sorry.htm?message=emailinvalid&data=email
)
)
)
)
Hi guillome,
Yes, but that's what these two lines do
Bob
Yes, but that's what these two lines do
$form->data['name'] = 'name';
$form->data['email'] = 'email';
Please remove them if you want to use the values from the form. I assumed that you had them there for some other reason.
Bob
This topic is locked and no more replies can be posted.