When using following command ...
show run | redirect http://1.1.1.1/test.php
... it returns immediately to the promt. However the log shows following entry:
%SYS-3-URLWRITEFAIL: redirection url write failed 'Bad file number'
No ip packets arrive on the target server. When using
copy running-config http://1.1.1.1/test.php
everythings works as expected (interactively).
Tested with Cisco IOS XE 03.16.04b.S