Re: Eutilities
"Fields, Christopher J" <[email protected]> Fri, 4 Nov 2016 12:05:36 +0000
| Newsgroups | gmane.comp.lang.perl.bio.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Guido, For support please keep the bioperl list included (I have cc’d it). I haven’t extensively tested the proxy settings but this hasn’t popped up before. Is this is a fairly recent change? I know that HTTP is no longer supported by NCBI; you must use HTTPS (the last release should address this). Otherwise, can you file this as a bug report? https://github.com/bioperl/Bio-EUtilities/issues Thanks, chris From: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Friday, November 4, 2016 at 1:46 AM To: Chris Fields <[email protected]<mailto:[email protected]>> Subject: Eutilities Hi Christopher, I have a problem to retrieve entrez by your tool. I think I have problems with the proxy settings. When I use LWP::UserAgent it works. How to set the proxy with your pm? Thanks in advance. Guido from old germany #!perl use Bio::DB::EUtilities; use LWP::UserAgent; use strict; use warnings; my $ua = LWP::UserAgent -> new (env_proxy => 1, keep_alive => 1, timeout => 30); #$ua->proxy(['http','ftp'], 'http://proxyhl:9090' ); #my $response = $ua -> get('http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?retmode=text&rettype=gb&db=nucleotide&tool=bioperl&id=gb%7CAL022723&usehistory=n'); #my $text = $response -> as_string; #print substr($text,0,1000) , "\n"; my @ids = qw(1621261 89318838 68536103 20807972 730439); my $factory = Bio::DB::EUtilities->new( -eutil => 'efetch', -email => '[email protected]<mailto:'[email protected]>', -db => 'pubmed', -retmode => 'xml', -id => \@ids); $factory ->proxy(['http','ftp'], 'http://proxyhl:9090' ); print $factory -> get_Response->content; Mit freundlichen Grüßen Dr. Guido Laucke UKSH Gesellschaft für IT Services mbH Dr. Guido Laucke Projektleiter / Bereich Klinische Verfahren Ratzeburger Allee 160 | 23538 Lübeck Tel.: 0451 500-92976, Fax: -3054 [email protected]<mailto:[email protected]>|www.uksh.de<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.uksh.de_&d=DQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=fbHa8Njtvh9VmSnzJxiEUTW9NWDwMMwQAzhgZDO41GQ&m=4bzBHztwmd_jYA7EEmH6FZoWFQ1c0KOwNe9SXPUG7HE&s=FpRyXMKAKHf2F429Z8qPppR_HUsgbD6Ka2H7oXS6MwY&e=> Besucheranschrift Maria-Goeppert-Straße 7 | MFC IV | 23562 Lübeck [cid:[email protected]] UKSH Gesellschaft für IT Services mbH Sitz der Gesellschaft: Lübeck Geschäftsführer: Prof. Dr. Jens Scholz, Uta Knöchel, Dr. Ralf Gieseke Handelsregister: HRB 10061 HL Amtsgericht Lübeck [http://media.uksh.de/logo/uksh.gif] Universitätsklinikum Schleswig-Holstein Rechtsfähige Anstalt des öffentlichen Rechts der Christian-Albrechts-Universität zu Kiel und der Universität zu Lübeck Vorstandsmitglieder: Prof. Dr. Jens Scholz (Vorsitzender), Peter Pansegrau, Christa Meyer Vorsitzender des Aufsichtsrates: Rolf Fischer Bankverbindungen: Förde Sparkasse IBAN: DE14 2105 0170 0000 1002 06 SWIFT/BIC: NOLA DE 21 KIE Commerzbank AG IBAN: DE17 2308 0040 0300 0412 00 SWIFT/BIC: DRES DE FF 230 Diese E-Mail enthält vertrauliche Informationen und ist nur für die Personen bestimmt, an welche sie gerichtet ist. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, bitten wir Sie, uns hiervon unverzüglich zu unterrichten und die E-Mail zu vernichten. Wir weisen darauf hin, dass der Gebrauch und die Weiterleitung einer nicht bestimmungsgemäß empfangenen E-Mail und ihres Inhalts gesetzlich verboten sind und ggf. Schadensersatzansprüche auslösen können. _______________________________________________ Bioperl-l mailing list [email protected] http://mailman.open-bio.org/mailman/listinfo/bioperl-l
image001.png
(image/png, 5.2 KB) - not displayed