http:request returns {error, session_remotly_closed}

Désiré Cocoyer igwan@REDACTED
Sun Feb 26 20:21:19 CET 2006


Soren Gronvald a écrit :
> hi,
>  
> I have a problem with http:request that I think could
> be a bug (but of course it could be due to ignorance
> on my part).
>   
I have XP SP2 and R10B-9, and the URL worked fine :

Erlang (BEAM) emulator version 5.4.12 [threads:0]

Eshell V5.4.12  (abort with ^G)
1> 
http:request("http://finance.yahoo.com/d/quotes.csv?s=IBM,GE,GM,F,PKD,GW&f=sl
1d1t1c1baphgvn&e=.csv").

=INFO REPORT==== 26-Feb-2006::20:13:05 ===
The inets application was not started. Has now been started as a 
temporary appli
cation.
{ok,{{"HTTP/1.1",200,"OK"},
     [{"connection","close"},
      {"date","Sun, 26 Feb 2006 19:13:24 GMT"},
      {"content-length","1066"},
      {"content-type","application/octet-stream"},
      {"p3p",
       "policyref=\"http://p3p.yahoo.com/w3c/p3p.xml\", CP=\"CAO DSP COR 
CUR ADM
 DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi 
IND PHY O
NL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV\""},
      {"p3p",
       "policyref=\"http://p3p.yahoo.com/w3c/p3p.xml\", CP=\"CAO DSP COR 
CUR ADM
 DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi 
IND PHY O
NL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV\""},
      {"cache-control","private"},
      {"x-cache","MISS from finance.yahoo.com"}],
     
"\"IBM\",80.10,\"2/24/2006\",\"4:00pm\",-0.10,N/A,N/A,80.20,80.65,79.85,390
4100,\"INTL BUSINESS 
MAC\"\r\n\"GE\",33.14,\"2/24/2006\",\"4:01pm\",-0.12,N/A,N/
A,33.26,33.305,33.02,18275300,\"GEN ELECTRIC 
CO\"\r\n\"GM\",19.99,\"2/24/2006\",
\"4:00pm\",-0.60,N/A,N/A,20.59,20.68,19.99,10019600,\"GEN 
MOTORS\"\r\n\"F\",8.10
,\"2/24/2006\",\"4:01pm\",-0.07,N/A,N/A,8.17,8.21,8.06,12347100,\"FORD 
MOTOR CO\
"\r\n\"PKD\",9.78,\"2/24/2006\",\"4:01pm\",+0.21,N/A,N/A,9.57,9.91,9.66,934600,\
"PARKER DRILLING 
C\"\r\n\"GW\",7.14,\"2/24/2006\",\"4:03pm\",-0.05,N/A,N/A,7.19,
7.29,7.10,5966300,\"GREY WOLF INC\"\r\n"}}



More information about the erlang-questions mailing list