Project

General

Profile

Actions

User story #5060

closed

Create generic methods for http request

Added by Nicolas CHARLES over 10 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Here is the list of generic methods that would need to be set:

http_get(url) --> http_get_headers(url, "")
http_get_headers(url, headers) --> http_headers("get", url, headers)
http_get_check_status(url, expected_status) --> http_get_check_status_headers(url, expected_status, "")
http_get_check_status_headers(url, expected_status, headers) --> http_check_status_headers("get", url, expected_status, headers)
http_get_check_content(url, expected_content) --> http_get_check_content_headers(url, expected_content, "")
http_get_check_content_headers(url, expected_content, headers) --> http_check_content_headers("get", url, expected_content, headers)
http_get_check_content_check_status(url, expected_content, expected_status) --> http_get_check_content_check_status_headers(url, expected_content, expected_status, "")
http_get_check_content_check_status_headers(url, expected_content, expected_status, headers) -->

http_post(url)
http_post_headers(url, heardes)
http_post_content(url, content)
http_post_content_headers(url, content, headers)

http(method, url)
http_headers(method, url, headers)
http_check_status_headers(method, url, expected_status, headers)
http_check_content_headers(method, url, expected_content, headers)
http_content_headers(method, url, content, headers)
http_content_check_status_headers(method, url, content, expected_status, headers)
http_content_check_content_headers(method, url, content, expected_content, expected_status, headers)
http_content_check_content_check_status_headers(method, url, content, expected_content, expected_status, headers) 

This meta ticket tracks the whole set of request, but we'll split the implementation in several times


Subtasks 2 (0 open2 closed)

User story #5061: Create generic method to check a http statusReleasedJonathan CLARKEActions
Bug #5062: Create generic method to send content to a url, with headers and methodReleasedJonathan CLARKEActions
Actions

Also available in: Atom PDF