AmazReplacer - Convert Amazon's URL into your referrer URL automatically

My blog has moved.
You can view this post at the following address:
http://www.osherove.com/blog/2003/9/25/amazreplacer-convert-amazons-url-into-your-referrer-url-auto.html
Published Thursday, September 25, 2003 10:59 AM by RoyOsherove

Comments

Thursday, September 25, 2003 7:25 AM by Darren Neimke

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically



{snip}
Thanks Roy!

Thursday, September 25, 2003 7:41 AM by SBC

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Good one Roy. Is there a code chunk in there that invisibly appends 'ISerializable' as a referer (& credits accordingly)?
;-)
Thursday, September 25, 2003 9:56 AM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

SBC - my own little trojan? Heh. No but seriously - the source is all these so you can change it.
Thursday, September 25, 2003 10:03 AM by SBC

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Just kiddin' Roy! You need a dose of Dilbert! Send me your mailing address & I'll send you a Dilbert Cartoon book (I get them at a tremendous discount)...
Regards & keep up the good postings.
Thursday, September 25, 2003 12:01 PM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Dilbert huh? I happen to subscribe to the dilbert RSS feed:
http://dwlt.net/tapestry/dilbert.rdf
Thursday, September 25, 2003 12:35 PM by Hugh Brown

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Thursday, September 25, 2003 12:42 PM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Thanks Hugh! :)
Thursday, September 25, 2003 3:06 PM by Scott Mitchell

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

FYI, I'm getting server timeout error messages when trying to download...
Thursday, September 25, 2003 3:54 PM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Scott: Yeah. I'm having some sort of DNS problem I think :(
Thursday, September 25, 2003 4:47 PM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Ok I fixed it. The download works now :)
Thursday, September 25, 2003 9:37 PM by SBC

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Subscribed! Thanks for RSS Feed.
Friday, September 26, 2003 4:43 AM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Rss feed?
Friday, September 26, 2003 9:28 AM by SBC

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

The Dilbert feed mentioned by you above - http://dwlt.net/tapestry/dilbert.rdf
'A Dilbert a day, .....'
8-)
Friday, September 26, 2003 9:30 AM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Boy I'm getting old. Forgot about that..
Friday, September 26, 2003 11:35 AM by Hugh Brown

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

Your HTML markup is missing some of the actual code because the code contains characters that should be escaped. For example, book.Groups["book"] refers to a section in the regular expression named 'book'. However, the code aboove does not show any <book> section.

The code in your ZIP file looks like this:
const string pattern = @".*(ASIN|tg/detail/-)/(?<book>.\d*)/.*";
Your code above reads like this:
const string pattern = .*(ASIN|tg/detail/-)/(?.\d*)/.*";

I'm not sure why your leading @ and " are missing, but I think you just have to escape the < and > to get <book> back.


Friday, September 26, 2003 4:54 PM by Roy Osherove

# re: AmazReplacer - Convert Amazon's URL into your referrer URL automatically

My fault for changing stuff manually inside the post istead of copy-pasting..
Will fix it. Thanks :)
Saturday, October 04, 2003 11:44 AM by TrackBack

# Emplace - revamped