[Solved]LiveAgent (LADesk) Rules HTTP Request What is inside HTTP Body?


In short, if you don't know what should be put inside the HTTP Body field when you are using HTTP request as rules, here is the string that contains "Everything".

Just copy and paste the below code to your HTTP Body box and you will get everything sent from LA to your URL.



---- Start Here -------
initiator_id={$initiator_id}&initiator_username={$initiator_username}&initiator_firstname={$initiator_firstname}&initiator_lastname={$initiator_lastname}&last_in_ticket_agent_id={$last_in_ticket_agent_id}&last_in_ticket_agent_username={$last_in_ticket_agent_username}&last_in_ticket_agent_firstname={$last_in_ticket_agent_firstname}&last_in_ticket_agent_lastname={$last_in_ticket_agent_lastname}&conv_last_message={$conv_last_message}&conv_code={$conv_code}&conv_conversationid={$conv_conversationid}&conv_datecreated={$conv_datecreated}&conv_datechanged={$conv_datechanged}&conv_datedue={$conv_datedue}&conv_priority={$conv_priority}&conv_departmentName={$conv_departmentName}&conv_departmentid={$conv_departmentid}&conv_agentid={$conv_agentid}&conv_urlCode={$conv_urlCode}&conv_startreferer={$conv_startreferer}&conv_status={$conv_status}&conv_subject={$conv_subject}&conv_tags={$conv_tags}&conv_tagNames={$conv_tagNames}&conv_channelType={$conv_channelType}&contact_emails={$contact_emails}&conv_field_url={$conv_field_url}&conv_field_postal_address={$conv_field_postal_address}&contact_contactid={$contact_contactid}&contact_parent_contactid={$contact_parent_contactid}&contact_firstname={$contact_firstname}&contact_lastname={$contact_lastname}&contact_system_name={$contact_system_name}&contact_email={$contact_email}&contact_phone={$contact_phone}&contact_twitter_name={$contact_twitter_name}&contact_description={$contact_description}&contact_avatar_url={$contact_avatar_url}&contact_city={$contact_city}&contact_countrycode={$contact_countrycode}&contact_time_offset={$contact_time_offset}&contact_levelid={$contact_levelid}&contact_groups={$contact_groups}&contact_note={$contact_note}&contact_company={$contact_company}&contact_gender={$contact_gender}&contact_status={$contact_status}&contact_field_url={$contact_field_url}&contact_field_postal_address={$contact_field_postal_address}&buttonId={$buttonId}&invitationId={$invitationId}
---- End Here -------

From the above string, you will see that it is actually the content the is posted to your desired URL.  Which means if you are entering value like:

<label_name>:<label_value>

like what you did in HTTP Headers section, it is wrong.

Hope it helps someone.

Sidenote: LiveAgent from LADesk did not have a very clear and precise and completed documentation/examples on everything inside their app.  It is very bad.


Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Using wget bypass htaccess username password 401 authorization