def upload_progress(request):
    log.debug('Touch to upload_progress view.')
    cache = get_cache('default')
    progress_id = ''
    if 'X-Progress-ID' in request.GET:
        progress_id = request.GET['X-Progress-ID']
    elif 'X-Progress-ID' in request.META:
        progress_id = request.META['X-Progress-ID']
    if progress_id:
        cache_key = "%s" % progress_id
        data = cache.get(cache_key)
        log.debug("responded with cache_key: %s, data: %s" % (cache_key, data))
        return HttpResponse(json.dumps(data))
    else:
        return HttpResponseServerError('Server Error: You must provide X-Progress-ID header' )
This method handles synchronous calls which are generally fast
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/mdtui/upload_handler_views.py/upload_progress--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/common/cloudstack.py/CloudStackConnection._sync_request