[DAS] Re: Hello Jim

Brian Gilman gilmanb@genome.wi.mit.edu
Tue, 12 Mar 2002 17:07:01 -0500 (EST)


Code looks great!

	My app doesn't care where the header appears. I just need to see
it when I hit the server at http://genome.ucsc.edu/cgi-bin/das. If I hit
the server at http://genome.ucsc.edu/cgi-bin/das/dsn I don't see this
header either. Looks like an HTTP GET is not outputting these
headers...Thanks Jim!! I really appreciate this!

					-B

-----------------------
Brian Gilman <gilmanb@genome.wi.mit.edu>
Sr. Software Engineer MIT/Whitehead Inst. Center for Genome Research
One Kendall Square, Bldg. 300 / Cambridge, MA 02139-1561 USA
phone +1 617  252 1069 / fax +1 617 252 1902


On Tue, 12 Mar 2002, Jim Kent wrote:

> Here's the code I have now.  It looks like it has the X-DAS-Status
> and so forth in it, but not in the order you're expecting.  Isn't the
> order supposed to be flexible on your side though?
> 
> void dasHeader(int err)
> /* Write out very start of DAS header */
> {
> printf("Content-Type:text/plain\n");
> printf("X-DAS-Version: DAS/0.95\n");
> printf("X-DAS-Status: %d\n", err);
> printf("\n");
> if (err != 200)
>     exit(-1);
> printf("<?xml version=\"1.0\" standalone=\"no\"?>\n");
> }
> 
> +++++++++++++++++++++++++++++++++++++++++++++++
> Jim Kent.  Zahler Lab.  University of California at Santa Cruz
> http://www.cse.ucsc.edu/~kent/
> 
> ----- Original Message ----- 
> From: "Brian Gilman" <gilmanb@harpo.wi.mit.edu>
> To: "Jim Kent" <jim_kent@pacbell.net>
> Cc: <das@biodas.org>
> Sent: Wednesday, March 06, 2002 11:20 AM
> Subject: Re: Hello Jim
> 
> 
> > Hello Jim,
> > 
> > Here is the current output from your server:
> > HTTP/1.1 200 OK
> > Date Wed, 06 Mar 2002 19:19:09 GMT
> > Server Apache/1.3.20 (Unix)
> > Keep-Alive timeout=15, max=100
> > Connection Keep-Alive
> > Transfer-Encoding chunked
> > Content-Type text/plain; charset=iso-8859-1
> > content-length 79
> > 
> > 
> > 
> > Here is what we are looking for:
> > 
> > HTTP/1.1 200 OK
> > Date Wed, 06 Mar 2002 19:17:44 GMT
> > Server Apache/1.3.20 (Unix)
> > X-DAS-Status 200
> > X-DAS-Version DAS/0.95
> > Keep-Alive timeout=15, max=100
> > Connection Keep-Alive
> > Transfer-Encoding chunked
> > Content-Type text/plain; charset=iso-8859-1
> > content-length 1037
> > 
> > 
> > This will allow clients to know what version of the spec you are
> > supporting at an early stage and reduce the # of round trips we need to
> > make to figure this out.
> > 
> > 
> > Thanks Jim!!
> > 
> > -Brian 
> > 
> > 
> > -----------------------
> > Brian Gilman <gilmanb@genome.wi.mit.edu>
> > Sr. Software Engineer MIT/Whitehead Inst. Center for Genome Research
> > One Kendall Square, Bldg. 300 / Cambridge, MA 02139-1561 USA
> > phone +1 617  252 1069 / fax +1 617 252 1902
> > 
> > 
> > On Wed, 6 Mar 2002, Jim Kent wrote:
> > 
> > > Could you grab the current response from 
> > > http://genome.ucsc.edu/cgi-bin/das
> > > put the change you want in, and send it to
> > > me via email?  I'm not sure where to put it.
> > > 
> > > 
> > > Then, could you please stop changing DAS
> > > so often?  Double digit version numbers in
> > > a *standard* are really a sign something is
> > > broken in the process....
> > > 
> > > +++++++++++++++++++++++++++++++++++++++++++++++
> > > Jim Kent.  Zahler Lab.  University of California at Santa Cruz
> > > http://www.cse.ucsc.edu/~kent/
> > > 
> > > ----- Original Message ----- 
> > > From: "Brian Gilman" <gilmanb@harpo.wi.mit.edu>
> > > To: <jim_kent@pacbell.net>
> > > Cc: <das@biodas.org>
> > > Sent: Wednesday, March 06, 2002 7:57 AM
> > > Subject: Hello Jim
> > > 
> > > 
> > > > Hello Jim, 
> > > > 
> > > > Long time no talk. As you may know a few of my developers have
> > > > been pinging you about your DAS server. The spec has changed quite a bit
> > > > but and there are certain portions that remain ambiguous. One of these
> > > > ambiguities have caused havok with our DAS API. The specification defines
> > > > a header called "X-DAS-Version" this header should be available to the
> > > > requester upon each and every request to the server. However, we have
> > > > found that if you ping a DAS server without a specific das request ie.
> > > > 
> > > > http://genome.ucsc.edu/cgi-bin/das 
> > > > 
> > > > We do not see an "X-DAS-Status" header which causes our API to
> > > > break. I know this is being very nit picky but, with all the versions of
> > > > DAS laying around, we find that having this header present at the most top
> > > > level request allows us to handle all these versions seemlessly. 
> > > > 
> > > > To that end, could you please add the "X-DAS-Version" header to
> > > > your DAS server when querying the top most URL
> > > > (genome.ucsc.edu/cgi-bin/das)? 
> > > > 
> > > > 
> > > > Thank You!!
> > > > 
> > > > -Brian Gilman
> > > > 
> > > > 
> > > > -----------------------
> > > > Brian Gilman <gilmanb@genome.wi.mit.edu>
> > > > Sr. Software Engineer MIT/Whitehead Inst. Center for Genome Research
> > > > One Kendall Square, Bldg. 300 / Cambridge, MA 02139-1561 USA
> > > > phone +1 617  252 1069 / fax +1 617 252 1902
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > 
> > 
> 
>