z0mz0m
August 28, 2010, 7:09am
1
Hi ,
i define this function
httpget:{[host;location] (`$“:http://”,host)“GET “,location,” HTTP/1.1\r\nHost:”,host,“\r\n\r\n”}
and then do :
httpget[“www.nasdaqtrader.com ”;“/dynamic/dailyfiles/daily2010.csv”]
however i get :
An error occurred during execution of the query.
The server sent the response:
rcv: An established connection was aborted by the software in your host machine.
it works from the browser , the same problem occurs for other websites
httpget[“www.cboe.com ”;“/publish/ScheduledTask/MktData/datahouse/totalpc.csv”]
what is the solution ?
Thank you !
Best regards,
–
Eugen
use HTTP/1.0 instead of 1.1 in httpget and it’ll work
z0mz0m
August 28, 2010, 8:41am
3
i tried this ,unfortunately? still doesnt work …
httpget:{[host;location] (`$“:http://”,host)“GET “,location,” HTTP/1.0\r\nHost:”,host,“\r\n\r\n”}
httpget[“www.nasdaqtrader.com ”;“/dynamic/dailyfiles/daily2010.csv”]
both 1.0 and 1.1 work for me, looks like it must be something in your setup
q)httpget
{[host;location] (`$“:http://”,host)“GET “,location,” HTTP/1.0\r\nHost:”,host,“\r\n\r\n”}
q)count httpget[“www.nasdaqtrader.com ”;“/dynamic/dailyfiles/daily2010.csv”]
35567
q)count httpget[“www.cboe.com ”;“/publish/ScheduledTask/MktData/datahouse/totalpc.csv”]
70501
q)httpget11:{[host;location] (`$“:http://”,host)“GET “,location,” HTTP/1.1\r\nHost:”,host,“\r\n\r\n”}
q)count httpget11[“www.nasdaqtrader.com ”;“/dynamic/dailyfiles/daily2010.csv”]
35548
q)count httpget11[“www.cboe.com ”;“/publish/ScheduledTask/MktData/datahouse/totalpc.csv”]
70482
q)
maybe a firewall or proxy interfering?
Works for me too.