Results 1 to 12 of 12

Thread: qnnetworkaccessmanager

  1. #1
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Post qnnetworkaccessmanager

    hi,
    i have to download files from server. for this i used example code in qt examples. but error is coming as " unknown protocol:
    can anyone tell me the reason so that i'll be thankful to you.

    Thanks in advance

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qnnetworkaccessmanager

    how would anyone know what your problem is until you post your code qt examples work well, u must have made some edit

  3. #3
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qnnetworkaccessmanager

    hi,

    i have used same as it is in examples.here i am sendind same. please check it with u rown exaples. if works, send me that urls
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qnnetworkaccessmanager

    what arguments did u pass?

  5. #5
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qnnetworkaccessmanager

    its all working fine at my end. u must haven't provided the right protocol hence u r getting that error. make sure u are prepending every url with a "http://"

  6. #6
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qnnetworkaccessmanager

    could u please try this one. i am not able to download below one.


    http://dd.weatheroffice.ec.gc.ca/gri...0300_P006.grib

  7. #7
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qnnetworkaccessmanager

    please help me anyone who knows this problem. i want to download files from above link.

  8. #8
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qnnetworkaccessmanager

    i have tried opening the link u mentioned in the browser and it doesn't open with the error "File Not Fount" which means the file doesnt exist so how can u download it...

  9. #9
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qnnetworkaccessmanager

    actually files are are always updated in that server.
    if u don't mind, could u plz check below link.
    [URL="http://dd.weatheroffice.ec.gc.ca/grib/public/lores/CMC_reg_00/CMC_reg_ABSV_ISBL_700_ps60km_2009030400_P000.grib"]

  10. #10
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qnnetworkaccessmanager

    it downloaded fine, i used this on the command line:

    Qt Code:
    1. downloadmanager.exe "http://dd.weatheroffice.ec.gc.ca/grib/public/lores/CMC_reg_00/CMC_reg_ABSV_ISBL_700_ps60km_2009030400_P000.grib"
    To copy to clipboard, switch view to plain text mode 

    maybe u were not putting the url inside ""?

  11. #11
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qnnetworkaccessmanager

    i am able to download files from some servers with out putting url between " ..."and for this url , which i have given it is showing "HTTP request failed" even though i put it in "..". is there any difference betweeen with and without ".."

  12. #12
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: qnnetworkaccessmanager

    if suppose server has SSL communication. then how can i download files from that server?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.