Greyhead.net

Home ChronoForms How-to docs CFv4 cURL [GH] action

CFv4 cURL [GH] action

CFv4 cURL [GH] action
This is a new custom cURL action for ChronoForms v4 that adds extra flexibility for advanced users.
  • The Params/Fields map box will accept either constant values or form results using {} curly brackets syntax e.g. param1=some_value or param2={some_input}.
  • Array results are handled correctly
  • An advanced option allows for setting CURLOPTS .

Note: This action is for ChronoForms v4 only; it should work with both the Joomla! 1.5 and 1.6 versions.

Updates: 

15 Mar 2012: added parsing of compound values like  'text {input_name} text'; reading of the query string entries from the target URL and debug output of the name+value pairs to be sent.  

From the Help Tab

This is an advanced cURL Action for ChronoForms v4 on Joomla! 1.5, 1.6, 1.7 & 2.5. It has the same basic functions as the standard Email Action but adds more features and uses slightly different code in the configuration.

The General tab

Action Label

  • You can enter a label for the cURL action in the Action Label box. This is optional but can be useful if you have a complex form with several cURL actions.

Target URL

  • Enter the URL that you want to send the data to in the Target URL box. This must either be a valid URL (complete with the http:// or https:// prefix); or a URL from the current site without the domain name; usually this will start with index.php and will be converted to a full URL before sending. If you leave the box empty it will default to the current site http://frances/Joomla2.5a/administrator/ If you include the 'query string' part of the the URL after a ? then the parameters and values there will be added to those in the Params/Fields map; if there are duplicated parameters the values from the Params/Fields map will be used.

Params/Fields map

  • The Params/Fields map is the main configuration box. Enter each data item that you want to send in this box using one line for each item. Each item takes the form of curl_parameter=some_value.
  • You can use values from the form results by using the 'curly bracket' syntax {input_name} e.g curl_parameter={input_name}.
  • You can mix plain text and curly brackets in the same line e.g. curl_parameter=some text {input_name} some more text
  • Note: to set an empty parameter use the value NULL; lines with no value will be ignored.
  • For advanced use only: You can also set custom cURL options in the Params/Fields map box. They must come after the cURL parameters and after a line with just ##CURLOPTS## on it. Entries take the form of CURLOPT=value e.g. CURLOPT_URL=http://example.com
  • Here's an example of a set of entries:
    banana=name
    lettuce=email
    apple={name}
    beetroot={email}
    ##CURLOPTS##
    CURLOPT_URL=http://example.com
    CURLOPT_TIMEOUT=60
  • The Header in Response option will return the full header details on the cURL submission. Leave this set to 'No' unless you are de-bugging or know that you need the information as it may well show the whole of the responding web page!!

 

File Name:ChronoForms v4 action curl_gh.zip
File Size:5.95 KB
File Type:application/zip
Hits:1538 Hits
Created Date:Monday April 09, 2012 04:28:17
Last Updated Date:Monday April 09, 2012 04:26:27

Your cart

There are 1 items in your cart
the best hostingpsd to html servicebuy vpn