[Greasemonkey] Examing http response codes

Matt Katz snarkhunt at gmail.com
Mon Dec 19 20:46:00 EST 2005


I'm not sure tinyurl works the same.
When I do

GM_xmlhttpRequest({
    method: 'GET',
    url: 'http://tinyurl.com/7r54z',
    onload: CheckUrl
});


function CheckUrl(responseDetails){
  GM_log(responseDetails.status + responseDetails.responseText );
}

I get the data from my blog.

Are you telling me that if I keep hitting *http://tinyurl.com/7r54z* that I
will eventually get back a 302 code instead of the actual data.  How many
times do you usually have to hit a url to get the 302?  No offense, but this
raises seems very strange.  Do you have any sample code that can demo it for
gmodules.com?

Thanks very much


On 12/19/05, Hans Schmucker <hansschmucker at gmail.com> wrote:
>
> I've just had a similar experience with gmodules.com (That's google's
> domain for running ig Modules). The funny thing is that you never get
> a 302 on your first attempt.... just keep trying and eventually you'll
> get it... at least on GModules
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>



--
My blog is exciting and fast paced like today's world!
http://snarkhunt.blogspot.com


More information about the Greasemonkey mailing list