@@ -0,0 +1,1861 @@
+# Copyright (C) 2014 MediaMath, Inc. %3Chttp://www.mediamath.com%3E%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#     http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0Aimport requests%0Afrom util import Identity%0A%0Aclass HttpRequestor():%0A%0A    def __init__(self, hostname, port, username=None, password=None, skip_ssl_verify=False, url_proto='https'):%0A        self.hostname = hostname%0A        self.port = port%0A        self.username = username%0A        self.password = password%0A        self.skip_ssl_verify = skip_ssl_verify%0A        self.url_proto = url_proto%0A        self.conn = requests.Session()%0A%0A    def send_table(self, table):%0A%0A        request_options = %7B 'headers' : %7B'Content-Type': 'application/json'%7D %7D%0A%0A        if self.skip_ssl_verify:%0A            request_options%5B'verify'%5D = False%0A        if self.username and self.password:%0A            request_options%5B'auth'%5D = (self.username, self.password)%0A%0A        url = '%7B%7D://%7B%7D:%7B%7D/request?op=add_table_data'.format(self.url_proto, self.hostname, self.port)%0A%0A        jsondata = table.get_json(op=%22add_table_data%22, identity=Identity.get_identity())%0A%0A        #print jsondata%0A    %0A        request_options%5B'data'%5D = jsondata%0A%0A        try:%0A            response = self.conn.post(url, **request_options)%0A            response.raise_for_status()%0A        except Exception as e:%0A            return %22ERROR: HttpRequestor: Request failed: url=%7B%7D: %7B%7D%22.format(url, e)%0A%0A        return None%0A

Add missing file.