PDA

View Full Version : http connection



bhogasena
24th February 2009, 10:27
hi,
i am using .....Qt/4.4.1/examples/http to download a file from given below link. but it is not downloading file.

[URL="http://weather.noaa.gov/pub/data/observations/metar/decoded/EDDC.TXT"]

please help me ..

thanks and regards
bhoga

talk2amulya
24th February 2009, 10:43
u're gonna hv to show the code for that :)

bhogasena
24th February 2009, 11:12
hi,
here i am sending code. please help me in this regard

talk2amulya
24th February 2009, 11:41
i've been trying to access the link u've given through browser and its down 9 out of 10 times..

bhogasena
24th February 2009, 11:50
in browser it is downloading immediately with in fraction of seconds

talk2amulya
24th February 2009, 12:05
did u try it recently :)

bhogasena
24th February 2009, 13:54
yes,
i tried recently. can any one help me why this is not downloading

talk2amulya
25th February 2009, 06:52
ur example is working now after i changed https to http....

bhogasena
25th February 2009, 11:02
hi,
r u able to get file from my code or have u changed code? i tried by both http and https
but not able to get.

talk2amulya
25th February 2009, 11:23
i didnt change any code, just changed from https to http..and i am able to download ur file without any error

bhogasena
25th February 2009, 12:20
for me it,s not working.
i am giving url as
http://weather.noaa.gov/pub/data/observations/metar/decoded/EDDC.TXT

talk2amulya
25th February 2009, 12:29
well, i forgot to mention..i changed the filename in which the text would be downloaded, although it shouldnt really make any difference..i used "download.txt" as to file to open and get the downloaded content..and i used the following url as specified by you:

"http://weather.noaa.gov/pub/data/observations/metar/decoded/EDDC.TXT"

there is nth wrong with your code, so either u arent specifying the right url or sm problem with ur own connection to server..but thats really a far-fetched thought..it should work, if it doesnt, even then it should :)

bhogasena
25th February 2009, 12:32
if you have code for downloading multiple files, could you please send me so that i'll be thankful to you