Common Functionality - HTTP in Common Functionality 7.2
A set of functions to get content from remote web pages.
Justification: Custom php scripts need a straight-forward and easy way to pull data from another website. This is useful as an alternative to iframe and has advantages and disadvantages to iframes. An advantage is that this allows showing remote content even if the remote url is down (via caching). A disadvantage is that remote images and links need to be processed, updated, and possibly even manually cached.
Parent topics
File
- modules/
cf_http/ cf_http.module, line 8 - Common Functionality - HTTP module.
Functions
Name | Location | Description |
---|---|---|
cf_adjust_url |
modules/ |
Fix relative url pulled from the remote server. |
cf_http_adjust_urls |
modules/ |
Fix relative urls pulled from the remote server. |
cf_http_get_response |
modules/ |
Reads an http page at the given path and returns an unprocessed response. |
cf_http_get_webpage |
modules/ |
Reads and processes a website page at the given path. |
cf_http_headers_errors |
modules/ |
Search through an array of http errors for common 400 and 500 http codes. |
cf_http_init |
modules/ |
Implements hook_init(). |
cf_http_parse_response |
modules/ |
Accepts and processes provided http content. |
cf_http_reduce_html_headers |
modules/ |
Reads and processes a website page at the given path. |
cf_http_split_response |
modules/ |
Breaks apart an html formatted document string. |
cf_http_unchunk_response |
modules/ |
Unchunk http content. |
cf_http_validate_response |
modules/ |
Validate http responses by checking header. |