<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To Get Redirect URL In PHP</title>
	<atom:link href="http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/</link>
	<description>Slightly Advanced Computer Stuff (and some magic)</description>
	<lastBuildDate>Sat, 21 Nov 2009 04:22:17 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rohit</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-32465</link>
		<dc:creator>Rohit</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-32465</guid>
		<description>Thanks to all, on the net, i was able to get the redirect working, with some help.. code below

I added this to the top of the code, now space or no space it works good.

$mob = str_replace(&quot;+&quot;, &quot;_&quot;, $_SERVER[&#039;QUERY_STRING&#039;]);
$url = &quot;http://example.com/pfinder?&quot; . &quot;$mob&quot;;


and at the end i added this to go to the page i want
$fin = get_final_url($url);
$mov = parse_url($fin, PHP_URL_QUERY);
sleep(5);
header(&quot;Location: http://enample1.com?$mov&quot;);

works fine..
But now i have a problem, the server i was to put this on does not support PHP. (server side)
I know this is not the right forum, but can any one help me to get this done in javascript (client side)</description>
		<content:encoded><![CDATA[<p>Thanks to all, on the net, i was able to get the redirect working, with some help.. code below</p>
<p>I added this to the top of the code, now space or no space it works good.</p>
<p>$mob = str_replace(&#8221;+&#8221;, &#8220;_&#8221;, $_SERVER['QUERY_STRING']);<br />
$url = &#8220;http://example.com/pfinder?&#8221; . &#8220;$mob&#8221;;</p>
<p>and at the end i added this to go to the page i want<br />
$fin = get_final_url($url);<br />
$mov = parse_url($fin, PHP_URL_QUERY);<br />
sleep(5);<br />
header(&#8221;Location: <a href="http://enample1.com?$mov" rel="nofollow">http://enample1.com?$mov</a>&#8220;);</p>
<p>works fine..<br />
But now i have a problem, the server i was to put this on does not support PHP. (server side)<br />
I know this is not the right forum, but can any one help me to get this done in javascript (client side)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31655</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 05 Oct 2009 11:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31655</guid>
		<description>Thanks for your work. I recently faced a similar problem and your solution made my day lots of easier.

Thomas</description>
		<content:encoded><![CDATA[<p>Thanks for your work. I recently faced a similar problem and your solution made my day lots of easier.</p>
<p>Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web design tutorials</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31161</link>
		<dc:creator>Web design tutorials</dc:creator>
		<pubDate>Fri, 14 Aug 2009 13:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31161</guid>
		<description>very nice script - thanks for sharing!</description>
		<content:encoded><![CDATA[<p>very nice script &#8211; thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31128</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Tue, 11 Aug 2009 19:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31128</guid>
		<description>Interesting. I added syntax highlighting to your code.</description>
		<content:encoded><![CDATA[<p>Interesting. I added syntax highlighting to your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emprivo</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31127</link>
		<dc:creator>Emprivo</dc:creator>
		<pubDate>Tue, 11 Aug 2009 19:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31127</guid>
		<description>Tried and tested function (follows javascript redirects as well):
&lt;pre lang=&#039;php&#039;&gt;
function get_final_url( $url, $timeout = 5 )
{
	$url = str_replace( &quot;&amp;&quot;, &quot;&amp;&quot;, urldecode(trim($url)) );

	$cookie = tempnam (&quot;/tmp&quot;, &quot;CURLCOOKIE&quot;);
    $ch = curl_init();
    curl_setopt( $ch, CURLOPT_USERAGENT, &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1&quot; );
	curl_setopt( $ch, CURLOPT_URL, $url );
	curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie );
	curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
	curl_setopt( $ch, CURLOPT_ENCODING, &quot;&quot; );
	curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
	curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
	curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout );
	curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout );
	curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
	$content = curl_exec( $ch );
	$response = curl_getinfo( $ch );
	curl_close ( $ch );

	if ($response[&#039;http_code&#039;] == 301 &#124;&#124; $response[&#039;http_code&#039;] == 302)
	{
		ini_set(&quot;user_agent&quot;, &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1&quot;);
		$headers = get_headers($response[&#039;url&#039;]);

		$location = &quot;&quot;;
		foreach( $headers as $value )
		{
			if ( substr( strtolower($value), 0, 9 ) == &quot;location:&quot; )
				return get_final_url( trim( substr( $value, 9, strlen($value) ) ) );
		}
	}


	if (	preg_match(&quot;/window\.location\.replace\(&#039;(.*)&#039;\)/i&quot;, $content, $value) &#124;&#124;
			preg_match(&quot;/window\.location\=\&quot;(.*)\&quot;/i&quot;, $content, $value)
	)
	{
		return get_final_url ( $value[1] );
	}
	else
	{
		return $response[&#039;url&#039;];
	}
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Tried and tested function (follows javascript redirects as well):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_final_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #000088;">$timeout</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;&amp;amp;&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&amp;amp;&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">urldecode</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$cookie</span> <span style="color: #339933;">=</span> <span style="color: #990000;">tempnam</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;CURLCOOKIE&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_USERAGENT<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_COOKIEJAR<span style="color: #339933;">,</span> <span style="color: #000088;">$cookie</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_FOLLOWLOCATION<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_ENCODING<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_AUTOREFERER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_CONNECTTIMEOUT<span style="color: #339933;">,</span> <span style="color: #000088;">$timeout</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_TIMEOUT<span style="color: #339933;">,</span> <span style="color: #000088;">$timeout</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_MAXREDIRS<span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_getinfo</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_close</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ch</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$response</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'http_code'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">301</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$response</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'http_code'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">302</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;user_agent&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <span style="color: #990000;">get_headers</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$response</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$location</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$headers</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;location:&quot;</span> <span style="color: #009900;">&#41;</span>
				<span style="color: #b1b100;">return</span> get_final_url<span style="color: #009900;">&#40;</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span><span style="color: #339933;">,</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>	<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/window\.location\.replace\('(.*)'\)/i&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>
			<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/window\.location\=<span style="color: #000099; font-weight: bold;">\&quot;</span>(.*)<span style="color: #000099; font-weight: bold;">\&quot;</span>/i&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> get_final_url <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$response</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31108</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Mon, 10 Aug 2009 19:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31108</guid>
		<description>Thanks for the fix. I hadn&#039;t considered relative URLs at all.</description>
		<content:encoded><![CDATA[<p>Thanks for the fix. I hadn&#8217;t considered relative URLs at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: N</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31107</link>
		<dc:creator>N</dc:creator>
		<pubDate>Mon, 10 Aug 2009 18:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31107</guid>
		<description>Bug fix:

if (preg_match(&#039;/^Location: (.+?)$/m&#039;, $response, $matches)){
		if ( substr($matches[1], 0, 1) == &quot;/&quot; )
			return $url_parts[&#039;scheme&#039;] . &quot;://&quot; . $url_parts[&#039;host&#039;] . trim($matches[1]);
		else
			return trim($matches[1]);

	} else {
		return false;
	}</description>
		<content:encoded><![CDATA[<p>Bug fix:</p>
<p>if (preg_match(&#8217;/^Location: (.+?)$/m&#8217;, $response, $matches)){<br />
		if ( substr($matches[1], 0, 1) == &#8220;/&#8221; )<br />
			return $url_parts['scheme'] . &#8220;://&#8221; . $url_parts['host'] . trim($matches[1]);<br />
		else<br />
			return trim($matches[1]);</p>
<p>	} else {<br />
		return false;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31039</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Sun, 02 Aug 2009 17:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31039</guid>
		<description>I&#039;ve no idea why this would happen. I tried a few tests myself using a query that contains a space, and it was processed correctly. Maybe you can give me a real example that I could test?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve no idea why this would happen. I tried a few tests myself using a query that contains a space, and it was processed correctly. Maybe you can give me a real example that I could test?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31038</link>
		<dc:creator>Rohit</dc:creator>
		<pubDate>Sun, 02 Aug 2009 17:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31038</guid>
		<description>hi,
   i did a echo $response; after the fclose($sock) and i saw that the first url was shown as query=val1 val2, noticed that the &quot;+&quot; was gone, i tried to replace the space with%20 still same only val1 was picked. any comments</description>
		<content:encoded><![CDATA[<p>hi,<br />
   i did a echo $response; after the fclose($sock) and i saw that the first url was shown as query=val1 val2, noticed that the &#8220;+&#8221; was gone, i tried to replace the space with%20 still same only val1 was picked. any comments</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-1/#comment-31025</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Sat, 01 Aug 2009 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-31025</guid>
		<description>Hmm, I&#039;m not sure I completely understand what you&#039;re trying to do, but I don&#039;t see why the second part of the variable wouldn&#039;t be captured. Have you tried doing something like &lt;pre lang=&#039;php&#039;&gt;print_r($_GET);&lt;/pre&gt; to verify that it&#039;s really discarded by the server, instead of a bug somewhere in your script?</description>
		<content:encoded><![CDATA[<p>Hmm, I&#8217;m not sure I completely understand what you&#8217;re trying to do, but I don&#8217;t see why the second part of the variable wouldn&#8217;t be captured. Have you tried doing something like</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p> to verify that it&#8217;s really discarded by the server, instead of a bug somewhere in your script?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
