d8aef11766e1720af30e848211b03a1bee002cf7 max Fri Aug 21 03:14:29 2015 -0700 adding chopchop and nebcutter and fixing an obvious bug. Also adding a little tool that parse a Chrome HTTP trace and creates the extTools.ra entry mostly automatically. refs #15113 diff --git src/hg/hgTracks/extTools.c src/hg/hgTracks/extTools.c index 00f512f..50c2ce9 100644 --- src/hg/hgTracks/extTools.c +++ src/hg/hgTracks/extTools.c @@ -125,54 +125,54 @@ if (sameWord(et->tool, tool)) break; if (et==NULL) errAbort("No configuration found for tool %s", tool); // construct an invisible CGI form with the given parameters printf("\n"); if (debug) printf("Target URL: %s

", et->url); char *chromName; int winStart, winEnd; char *db = cartString(cart, "db"); char *pos = cartString(cart, "position"); -int len = winEnd-winStart; findGenomePos(db, pos, &chromName, &winStart, &winEnd, cart); +int len = winEnd-winStart; char *url = replaceInUrl(et->url, "", cart, db, chromName, winStart, winEnd, NULL, TRUE); -printf("You're being redirected from the UCSC Genome Browser to the site %s
\n", url); -if (et->email) - printf("Please contact %s for questions on this tool.
\n", et->email); - char *method = "POST"; if (et->isHttpGet) method = "GET"; printf("

\n", method, url); struct slPair *slp; if (et->maxSize!=0 && len > et->maxSize) { printf("Sorry, this tool accepts only a sequence with less than %d base pairs

\n" - "Try to zoom in some more.

\n", et->maxSize); + "Please zoom in some more.

\n", et->maxSize); return; } +printf("You're being redirected from the UCSC Genome Browser to the site %s
\n", url); +if (et->email) + printf("Please contact %s for questions on this tool.
\n", et->email); + boolean submitDone = FALSE; for (slp=et->params; slp!=NULL; slp=slp->next) { char* val = slp->val; if (sameWord(val, "$db")) val = db; if (sameWord(val, "$position")) val = pos; if (sameWord(val, "$returnUrl")) { // get the full URL of this hgTracks page, so external page can construct a custom track // and link back to us char* host = getenv("HTTP_HOST"); char* reqUrl = getenv("REQUEST_URI");