blob: c4ae52db6c585984a8f7f0b123f144a2a7c93b53 [file] [log] [blame]
#!/usr/bin/env python
#///////////////////////////////////////////////////////////////////////////////
#// Copyright (c) 2000-2017 Ericsson Telecom AB //
#// //
#// All rights reserved. This program and the accompanying materials //
#// are made available under the terms of the Eclipse Public License v1.0 //
#// which accompanies this distribution, and is available at //
#// http://www.eclipse.org/legal/epl-v10.html //
#///////////////////////////////////////////////////////////////////////////////
import urllib2
import json
url = "http://localhost:3164/titansim.ajaxcall"
json_data = json.dumps({"requests":[ {"getData":{ "source":"ExecCtrl", "element":"Start", "ptcname":"", "params":[] }} ]})
request = urllib2.Request(url, json_data, {'Content-Type': 'text'})
response = urllib2.urlopen(request).read()
print response