src/r/d/Rdbhdb-HEAD/examples/ex9.py Rdbhdb(Download)
# Testing Exception Raising. Direct connection (not through API)
from urllib import urlencode
from urllib2 import Request, urlopen
import json
def postit(url,fields):
postdata = urlencode(fields)
headers = {'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': str(len(postdata))}
r = Request(url, postdata, headers)
src/r/d/Rdbhdb-HEAD/examples/ex10.py Rdbhdb(Download)
# Direct connection; Not through API; Prints rows of tables accounts and branches from urllib import urlencode from urllib2 import Request, urlopen url = 'http://rdbhost.com/db/'+'s000015' authcode = 'KF7IUQPlwfSth4sBvjdqqanHkojAZzEjMshrkfEV0O53yz6w6v' req = Request(url)
src/r/d/Rdbhdb-HEAD/examples/get_no_series_terms.py Rdbhdb(Download)
# Direct connection; Not through API; Prints rows of tables accounts and branches from urllib import urlencode from urllib2 import Request, urlopen url = 'http://rdbhost.com/db/'+'s000015' authcode = 'KF7IUQPlwfSth4sBvjdqqanHkojAZzEjMshrkfEV0O53yz6w6v' req = Request(url)
src/r/d/Rdbhdb-HEAD/examples/ex4.py Rdbhdb(Download)
# Direct connection; Not through API; Creates table test and then deletes it. from urllib import urlencode from urllib2 import Request, urlopen url = 'http://rdbhost.com/db/'+'s000015' authcode = 'KF7IUQPlwfSth4sBvjdqqanHkojAZzEjMshrkfEV0O53yz6w6v' req = Request(url)
src/r/d/Rdbhdb-HEAD/examples/get_no_table_rows.py Rdbhdb(Download)
# Direct connection; Not through API; Prints rows of tables accounts and branches from urllib import urlencode from urllib2 import Request, urlopen url = 'http://rdbhost.com/db/'+'s000015' authcode = 'KF7IUQPlwfSth4sBvjdqqanHkojAZzEjMshrkfEV0O53yz6w6v' req = Request(url)
src/p/i/PirateBay-BUA-HEAD/PirateBayBUA/utils.py PirateBay-BUA(Download)
# Copyright (c) Alexander Borgerth 2010, Copyright (c) 2005-2010 re-edited by Maxiste Deams, Patrick Riendeau, Rheault Etccy for # Upcoming Security audit in Canada. # See LICENSE for details. from urllib2 import Request, urlopen from urllib import urlencode from os import path, getcwd
header = { 'User-agent': self.get_random_user_agent() }
if form_data is not None:
if get_request:
return Request( url=url+urlencode(form_data),
headers=header )
return Request( url=url,
data=urlencode(form_data),
headers=header )
return Request( url=url,
src/p/i/piratebay-0.3.1/piratebay/utils.py piratebay(Download)
# Copyright (c) Alexander Borgerth 2010 # See LICENSE for details. from urllib2 import Request, urlopen from urllib import urlencode from os import path, getcwd from random import choice
header = { 'User-agent': self.get_random_user_agent() }
if form_data is not None:
if get_request:
return Request( url=url+urlencode(form_data),
headers=header )
return Request( url=url,
data=urlencode(form_data),
headers=header )
return Request( url=url,
src/p/y/python-payflowpro-HEAD/payflowpro/client.py python-payflowpro(Download)
"""
import sys, time, re, types, logging
from urllib2 import Request, urlopen, urlparse
from classes import (CreditCard, Amount, Profile,
Address, Tracking, Response, parse_parameters)
try_count += 1
request = Request(
url = self.url_base,
data = parmlist,
headers = headers)
src/p/y/pyflowpro-HEAD/pyflowpro/creditcard.py pyflowpro(Download)
from urllib2 import Request, urlopen from uuid import uuid4 from pyflowpro.nvp import NvpDict from pyflowpro.headers import STANDARD_HEADERS
}
headers.update(STANDARD_HEADERS)
request = Request(
url = url,
data = str(self.parms),
headers = headers,
)
src/p/y/python_payflowpro-0-0.2-final/payflowpro/client.py python-payflowpro(Download)
"""
import sys, time, re, types, logging
from urllib2 import Request, urlopen, urlparse
from classes import (CreditCard, Amount, Profile,
Address, Tracking, Response, parse_parameters)
try_count += 1
request = Request(
url = self.url_base,
data = parmlist,
headers = headers)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next