Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^pcspectra.com [NC]
RewriteRule ^(.*)$ http://www.pcspectra.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,NC,L]Code: Select all
scripts/add_contact.php
scripts/add_contact.php?dept=3&owner=4Is there an easy way to perform this request, basically just catching the request (doing my thing) then emulating/copying the exact request by forwarding the HTTP request exactly as it was intercepted???
Even if I had to execute an binary or something so I don't have to implement an HTTP client inside my index.php that would be awesome...
Any ideas?
Cheers,
Alex