Results 1 to 5 of 5

Thread: web request

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    46

    web request

    Hi all!

    I have a link which return a file:
    http://archive.eso.org/dss/dss/image...=download-fits

    The simple download method return only html page. Should I use
    SOAP or any other method? Can anyone send me sample or web page
    with good manual. I never use SOAP before...

    Thanks for help!
    Best regards,
    Maciej

  2. #2
    Lively Member
    Join Date
    Jul 2005
    Posts
    67

    Re: web request

    VB Code:
    1. myWebClient.DownloadFile("http://yourserver/placefileisin/filename.fil", _
    2.                     Application.StartupPath & "\filename.fil")

    will download the file to the directory where the program is. To store it in a specific location change the Application.StartupPath to where ever you want to download it to (eg "C:\temp\filename.fil"

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    46

    Re: web request

    It will be not work. The request contains parameters. If I tried
    download method to output file does not download but simple
    html.
    If I put this address to IE he ask 'save file?' - the file will be
    download and on web page included just simple informations about
    this file. I want file not html page with infos...


    Best regards,
    Maciej

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    46

    Re: web request

    Looks my foult Aidygus!
    I add bad parameters and method works fine.

    Sorry
    and thanks for response,
    Maciej

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    46

    Re: web request

    Looks my foult Aidygus!
    I add bad parameters and method now works fine.

    Sorry
    and thanks for response,
    Maciej

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width