efhjones / otterapi

Automatically exported from code.google.com/p/otterapi
0 stars 0 forks source link

Topsy handles 301 redirects inconsistently (www vs. non-www) #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Topsy rightly considers www.domain.com and domain.com to be different sites, 
but definitely has a mechanism for knowing when one redirects to the other. I 
can't figure out a way to trigger it.

If you access http://otter.topsy.com/trackbacks.json?url=http://www.topsy.com/. 
The response begins with 
{"request":{"parameters":{"orig_url":"http://www.topsy.com/","redirected_url":"h
ttp://topsy.com/","url":"http://topsy.com/"}. I'm trying to achieve the same 
effect for my domain (borismus.com, formerly www.borismus.com).

What steps will reproduce the problem?

1. Visit http://otter.topsy.com/trackbacks.json?url=http://borismus.com/
2. Visit http://otter.topsy.com/trackbacks.json?url=http://www.borismus.com/
3. Note the difference.

What is the expected output? What do you see instead?

I'd expect topsy to notice the 301 redirect from my www to the non-www domain, 
and respond with a similar "redirected_url" response, effectively giving the 
same response for both requests in (1) and (2).

What version of the product are you using? On what operating system?

Using the currently live otter API (as of 2010-02-10).

Original issue reported on code.google.com by boris.s...@gmail.com on 11 Feb 2011 at 1:23

GoogleCodeExporter commented 8 years ago
Boris, next time the Topsy crawler visits your pages, it'll note the redirect.  
One way to force it is by posting a link on Twitter that has not been posted to 
Twitter before. 

Original comment by vipul%to...@gtempaccount.com on 11 Feb 2011 at 1:50

GoogleCodeExporter commented 8 years ago
I tweeted a previously untweeted url: http://www.borismus.com/moving-day/ and 
now I get the correct redirected_url business in the response for that and 
http://www.borismus.com/.

Still, nothing seems to have changed for
http://otter.topsy.com/trackbacks.json?url=http://www.borismus.com/android-phone
gap-plugins/ vs
http://otter.topsy.com/trackbacks.json?url=http://borismus.com/android-phonegap-
plugins/

Any ideas?

Original comment by boris.s...@gmail.com on 11 Feb 2011 at 2:11