A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.urlfetch below:

google.appengine.api.urlfetch module | App Engine standard environment for Python 2

Skip to main content

Stay organized with collections Save and categorize content based on your preferences.

google.appengine.api.urlfetch module Summary

URL downloading API.

Contents
google.appengine.api.urlfetch.Fetch(url, payload=None, method=1, headers={}, allow_truncated=False, follow_redirects=True, deadline=None, validate_certificate=None)source

Fetches the given HTTP URL, blocking until the result is returned.

URLs are fetched using one of the following HTTP methods:
  • GET

  • POST

  • HEAD

  • PUT

  • DELETE

  • PATCH

To fetch the result, a HTTP/1.1-compliant proxy is used.

Parameters Returns

An object containing following fields:

Return type

object

Raises

urlfetch_errors.Error – If an error occurs. See the urlfetch_errors module for more information.

Note:

HTTP errors are returned as a part of the return structure. HTTP errors like 404 do not result in an exception.

google.appengine.api.urlfetch.create_rpc(deadline=None, callback=None)source

Creates an RPC object for use with the urlfetch API.

Parameters Returns

An apiproxy_stub_map.UserRPC object specialized for this service.

google.appengine.api.urlfetch.fetch(url, payload=None, method=1, headers={}, allow_truncated=False, follow_redirects=True, deadline=None, validate_certificate=None)source

Fetches the given HTTP URL, blocking until the result is returned.

URLs are fetched using one of the following HTTP methods:
  • GET

  • POST

  • HEAD

  • PUT

  • DELETE

  • PATCH

To fetch the result, a HTTP/1.1-compliant proxy is used.

Parameters Returns

An object containing following fields:

Return type

object

Raises

urlfetch_errors.Error – If an error occurs. See the urlfetch_errors module for more information.

Note:

HTTP errors are returned as a part of the return structure. HTTP errors like 404 do not result in an exception.

google.appengine.api.urlfetch.get_default_fetch_deadline()source

Gets the default value for create_rpc()’s deadline parameter.

google.appengine.api.urlfetch.make_fetch_call(rpc, url, payload=None, method=1, headers={}, allow_truncated=False, follow_redirects=True, validate_certificate=None)source

Executes the RPC call to fetch a given HTTP URL.

The first argument is a UserRPC instance. See urlfetch.fetch for a thorough description of the remaining arguments.

Raises Returns

The RPC object that was passed into the function.

google.appengine.api.urlfetch.set_default_fetch_deadline(value)source

Sets the default value for create_rpc()’s deadline parameter.

This setting is thread-specific, meaning it that is stored in a thread local. This function doesn’t check the type or range of the value. The default value is None.

See also: create_rpc(), fetch()

Parameters

value – The default value that you want to use for the deadline parameter of create_rpc().

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-16 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["The `google.appengine.api.urlfetch` module provides an API for downloading content from HTTP URLs, supporting methods like GET, POST, HEAD, PUT, DELETE, and PATCH."],["The primary function, `fetch`, retrieves content from a specified URL and returns an object with the content, status code, and headers."],["The `create_rpc` function creates an RPC object for use with the urlfetch API, allowing for more complex asynchronous URL fetching operations."],["You can customize requests with parameters such as `method`, `payload`, `headers`, `allow_truncated`, `follow_redirects`, `deadline`, and `validate_certificate` to control the behavior of the fetching operation."],["`set_default_fetch_deadline` and `get_default_fetch_deadline` allow you to set and get a time limit for fetching a url, and it is stored on a per-thread basis."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4