Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

httpPost(url, request [[, proxy] [, postDataObject]])

Package

http

Alias

Pkg Usage

post(url, request [[, proxy] [, postDataObject]])

Description

Excerpt
hiddentrue
Executes an HTTP POST for the given URL using the specified HttpRequest object.

...

Code Block
//Define structs
struct property {
    string property;
    string value;
}

struct properties {
   property  [] properties;
}

struct returnData {
    string status;
    string contactID;
}

...

Code Block
//Create array/struct
property  [] propertyArray;
property p;
properties newContact;

//Add data to array/struct
p.property = "firstname";
p.value = "Merimas";
propertyArray += p;

p.property = "lastName";
p.value = "Fairbairn";
propertyArray += p;

p.property = "email";
p.value = "merimas_fairbairn@aol.com";
propertyArray += p;

p.property = "company";
p.value = "Goodchild";
propertyArray += p;

newContact.properties += propertyArray;

...