Dave,

OK, I get it. That’s why it’s downloading via “download" when I just enter the 
url in my browser. After playing around a bit, I see that either works as a 
Jmol load command:

load http://files.rcsb.org/download/1xpb.pdb 
<http://files.rcsb.org/download/1xpb.pdb>
load http://files.rcsb.org/view/1xpb.pdb <http://files.rcsb.org/view/1xpb.pdb>

I did not know that. I thought that I still had to go after these things via 
proxy in Jmol.

load  http://www.rcsb.org/pdb/files/1xpb.pdb 
<http://www.rcsb.org/pdb/files/1xpb.pdb> does not work. That’s why I was 
confused. It does work via server proxy. Bottom Line: It looks like  
http://www.rcsb.org/pdb/files/1xpb.pdb <http://www.rcsb.org/pdb/files/1xpb.pdb> 
is history!

Thanks.

Otis


http://files.rcsb.org/download/1xpb.pdb
--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org

> On Apr 12, 2016, at 5:00 AM, Dave Howorth <dhowo...@mrc-lmb.cam.ac.uk> wrote:
> 
> On 2016-04-12 04:16, Otis Rothenberger wrote:
>> Bob,
>> 
>> I have been using http://www.rcsb.org/pdb/files/1xpb.pdb
>> <http://www.rcsb.org/pdb/files/1xpb.pdb> server side for these files,
>> and missed the redirect to http://files.rcsb.org/view/1xpb.pdb. This
>> is going to a url path marked as view, as opposed
>> http://files.rcsb.org/download/1xpb.pdb
>> <http://files.rcsb.org/download/1xpb.pdb> , which indicates
>> download.
>> 
>> The above is obvious, but I’m curious about the latter. They are
>> doing something here that forces a no dialog download, at least with
>> Safari/Mac. Are they doing something funky with the Content-Type that
>> could be causing problems?
> 
> 
> $ wget http://www.rcsb.org/pdb/files/1xpb.pdb
> --09:54:35--  http://www.rcsb.org/pdb/files/1xpb.pdb
>            => `1xpb.pdb'
> Resolving www.rcsb.org... 128.6.70.10
> Connecting to www.rcsb.org|128.6.70.10|:80... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: http://files.rcsb.org/view/1xpb.pdb [following]
> --09:54:35--  http://files.rcsb.org/view/1xpb.pdb
>            => `1xpb.pdb'
> Resolving files.rcsb.org... 165.230.17.202
> Connecting to files.rcsb.org|165.230.17.202|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/plain]
> 
>     [ <=>                                 ] 208,575       --.--K/s
> 
> 09:54:36 (41.92 MB/s) - `1xpb.pdb' saved [208575]
> 
> 
> $ wget http://files.rcsb.org/download/1xpb.pdb
> --09:59:03--  http://files.rcsb.org/download/1xpb.pdb
>            => `1xpb.pdb.1'
> Resolving files.rcsb.org... 165.230.17.202
> Connecting to files.rcsb.org|165.230.17.202|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/octet-stream]
> 
>     [ <=>                                 ] 208,575       --.--K/s
> 
> 09:59:04 (47.78 MB/s) - `1xpb.pdb.1' saved [208575]
> 
> 
> So apparently view is text/plain
> whilst download is application/octet-stream
> 
> Cheers, Dave
> 
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to