[TYPO3-core] RFC #16011: Feature: getUrl function needs support for sending POST data

Jigal van Hemert jigal at xs4all.nl
Sat Oct 16 16:17:51 CEST 2010


Hi,

This is a SVN patch request.

Type: Feature

BT reference: http://bugs.typo3.org/view.php?id=16011

Branches: trunk

Problem:
t3lib_div::getURL() can retrieve contents of webpages, but sometimes you 
need to send information via POST to get the correct response (e.g. 
authentication data, file upload). getURL doesn't support POST yet.

Solution:
Add an optional parameter to set POST fields

How to test:
Use getURL to retrieve information from a page which contains access 
restricted content. When including the user login information in the 
POST fields the access restricted content will also be included in the 
result.

Notes:
Use case: send newsletters with access restricted content.

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16011.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101016/c8f2187c/attachment.asc>


More information about the TYPO3-team-core mailing list