Hello Eric

If the <@URL> tag from within Tango won't do the job for you due to 
strange restrictions set in the cgi (or if you are still using Tango 
3), then you can use cURL:

http://curl.haxx.se/

Grab your POST arguments, save them to a text file, then call cURL as 
an external action from within Tango.  Use the -d or -F flag with @ 
to read the data from the file you just saved (or if it's just two 
arguments, you can stick it all on the command line, without using 
"@"). Remember to URL-encode the arguments.

You may also want to use the -e flag to fake the "referrer" field, 
and fool the cgi into thinking the form was submitted from the 
original location and not Tango.  Optionally, also use -A to fake the 
user-agent, if the cgi requires one.

The difference between -d and -F is in the content type: -d is 
submitted as "application/x-www-form-urlencoded", and -F as 
"multipart/form-data".

Regards,
Todd


>OK folks I have  a question for your. We have an information form submittal
>that needs to go to two places. This form is a generic informational form
>for users to sign up for an email list subscription that this company has in
>force.
>
>Here is what needs to happen:
>
>1) First we need to submit the form to OUR database for storage and other
>things.
>
>2) secondly, we need to sent the contents of the form to a proprietary cgi
>that, normally, we would use a form tag like:
>
><form method = "post"
>action="http://cgi.domain.com/cgi/subscribe/add_email.cgi";>
>
>But because we have to submit the form to our .taf first, we cannot submit
>this form to the above cgi using a normal form method submittal.
>
>The proprietary cgi is expecting a post argument with the email_address and
>optin fields. Can someone shed some light on a way to do this in WiTango?
>
>'Email_address' field is the user's email address
>'Optin' field is the ID of the email list the user wants to be in.
>
>
>Thanks for any help you can give me,
>
>-Erik

--------------------------------------------------------------
Todd Trann, B.E., B.Sc.                    [EMAIL PROTECTED]
Programmer / Analyst                       ph   (306) 966-2610
Student Affairs and Services               fax  (306) 966-5092
University Of Saskatchewan            http://www.usask.ca/sas/
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to