def dlcs_api_request(path, params='', user='', passwd='', throttle=True):
 if throttle:
  Waiter()
 if params:
  url = ('%s/%s?%s' % (DLCS_API, path, urllib.urlencode(dict0(params))))
 else:
  url = ('%s/%s' % (DLCS_API, path))
 if DEBUG:
  print >>sys.stderr, ('dlcs_api_request: %s' % url)
 try:
  return http_auth_request(url, DLCS_API_HOST, user, passwd, USER_AGENT)
 except DefaultErrorHandler as e:
  print >>sys.stderr, ('%s' % e)

def dlcs_api_request ( path , params = '' , user = '' , passwd = '' , throttle = True ) : if throttle : Waiter ( ) if params : url = ( '%s/%s?%s' % ( DLCS_API , path , urllib . urlencode ( dict0 ( params ) ) ) ) else : url = ( '%s/%s' % ( DLCS_API , path ) ) if DEBUG : print >> sys . stderr , ( 'dlcs_api_request: %s' % url ) try : return http_auth_request ( url , DLCS_API_HOST , user , passwd , USER_AGENT ) except DefaultErrorHandler as e : print >> sys . stderr , ( '%s' % e )
retrieve/query a path within the del .