Forums

cURL / iContact errors

rodsdesign 28 Jun, 2010
Hi all,
I'm new to cURL - and I hate iContact🙂 - but I have to get this for a client...

here's there error I'm getting on submit.

cf_CURL debug info
$curl_values: fields_fname=Rod&fields_email=3%40rodmartin.net&fields_zip=47018&listid=__multi&lists=121418%3A121389&specialid%3A121418=85E2&listid%3A121418=1&specialid%3A121389=6LL8&listid%3A121389=1&name=%22icpsignup%22&id=%22icpsignup8993%22&accept-charset=%22UTF-8%22
$params->target_url: https://app.icontact.com/icp/signup.php
$ch: Resource id #167
CURL response: HTTP/1.1 200 OK Date: Mon, 28 Jun 2010 18:47:26 GMT Server: Apache/2.2.14 (Debian) mod_ssl/2.2.14 OpenSSL/0.9.8k Content-Length: 177 Connection: close Content-Type: text/html; charset=utf-8

An error occured during your email list submission. Please try again later.


I'm guessing its in the extra fields... or all the stuff from the hidden fields.

       <input type=hidden name="listid" value="__multi">
        <input type=hidden name="lists" value="121418:121389">
        <input type=hidden name="specialid:121418" value="85E2">


any help would be much appreciated
GreyHead 28 Jun, 2010
Hi rodsdesign,

You will certainly need the hidden field values. Add them in the text area in the Curl config as
listid=__multi
lists=121418:121389
specialid:121418=85E2

Bob
rodsdesign 29 Jun, 2010
hmmm did that - some of the hidden fields were "discovered" and put in the cURL parameters - some were not. I added all of them to the extra fields.

cf_CURL debug info
$curl_values: fields_fname=Rod&fields_email=3%40rodmartin.net&fields_zip=47018&name=icpsignup&id=icpsignup8993&accept-charset=UTF-8&listid=__multi&lists=121418%3A121389&specialid:121418=85E2&listid:121418=1&specialid:121389=6LL8&listid:121389=1&clientid value=303507&formid=8993&reallistid=1&doubleopt=1
$params->target_url: https://app.icontact.com/icp/signup.php
$ch: Resource id #167
CURL response: HTTP/1.1 200 OK Date: Tue, 29 Jun 2010 13:04:28 GMT Server: Apache/2.2.14 (Debian) mod_ssl/2.2.14 OpenSSL/0.9.8k Content-Length: 177 Connection: close Content-Type: text/html; charset=utf-8

An error occured during your email list submission. Please try again later.


the $curl_values "look" right to me... any other thoughts?
could the "%3A" instead of a : be messing it up?
GreyHead 17 Jul, 2010
Hi rodsdesign,

Sorry I lost track of this one. I've just run a test on my iContact account using the code from the iContact Sign-up form. It works OK.

The Form HTML is
<div id="SignUp">
<table width="260" class="signupframe" border="0" cellspacing="0" cellpadding="5">
  <tr>
      <td valign=top align=right>
        <font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">Email</font>
      </td>
      <td align=left>
        <input type=text name="fields_email">
      </td>
    </tr>
	<tr>
      <td valign=top align=right>
        <font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">First Name</font>
      </td>
      <td align=left>
        <input type=text name="fields_fname">
      </td>
    </tr>
	<tr>
      <td valign=top align=right>
         <font size="2">Last Name</font>
      </td>
      <td align=left>
        <input type=text name="fields_lname">
      </td>
    </tr>
    <TR>
      <TD> </TD>
      <TD><font size="1">*</font><font size="2"> = Required Field</FONT></TD>
    </TR>
    <tr>
      <td> </td>
      <td><input type="submit" name="Submit" value="Submit"></td>
    </tr>
    </table>
</div>


Then in the cURL plugin I have the target url
https://app.icontact.com/icp/signup.php

Then the three fields fileds_email, fields_fname and fields_lname and lastly in the Extra values to send block the values from the hidden fileds in the original form html (values changed here)
redirect=http://www.icontact.com/www/signup/thanks.html
errorredirect=http://www.icontact.com/www/signup/error.html
listid=9999
specialid:9999=XXXX
clientid=111111
formid=999
reallistid=1
doubleopt=0

This works fine for me.

Bob
This topic is locked and no more replies can be posted.