Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created March 9, 2018 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/8ec04396b4bb0ce3cd3816c589baeeb0 to your computer and use it in GitHub Desktop.
Save steveosoule/8ec04396b4bb0ce3cd3816c589baeeb0 to your computer and use it in GitHub Desktop.
Miva - mvt:call Response Headers
<mvt:call action="'https://www.example.com/'" method="'GET'">
<mvt:assign name="l.header_counter" value="1" />
<mvt:while expr="l.header_counter LT s.callnumberofheaders">
<mvt:assign name="l.result" value="miva_array_insert_var( l.response_headers, miva_variable_value( 's.callreturnheader' $ l.header_counter ), -1 )" />
<mvt:assign name="l.header_counter" value="l.header_counter + 1" />
</mvt:while>
</mvt:call>
<mvt:eval expr="glosub(miva_array_serialize(l.response_headers), ',', '<br>')" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment