catch { curl::transfer -url https://intenggmapp01.corp.ad.sentara.com/gmx/rest/views/hci -verbose 1 -errorbuffer strCurlError -sslverifypeer 0 -httpheader [list "Authentication: basic [encode :]" "User-Agent: AppName:Interface Engine" "Accept: application/json"] -bodyvar ::strBody -headervar ::strHeader -cookiejar [file join $::HciSiteDir jmcookie.txt] } strResult
catch { curl::transfer -url https://intenggmapp01.corp.ad.sentara.com/gmx/rest/view/33 -verbose 1 -errorbuffer strCurlError -httpheader [list "User-Agent: AppName:Interface Engine" "Accept: application/json"] -sslverifypeer 0 -bodyvar ::strBody -cookiefile [file join $::HciSiteDir jmcookie.txt] } strResult
catch { curl::transfer -url https://intenggmapp01.corp.ad.sentara.com/gmx/rest/session -verbose 1 -errorbuffer strCurlError -httpheader [list "User-Agent: AppName:Interface Engine" "Accept: application/json"] -sslverifypeer 0 -customrequest DELETE -cookiefile [file join $::HciSiteDir jmcookie.txt] } strResult
Originally posted by Phil Costner