Thanks for your comments so far
The thing is, using direct URLs to download the files won't work. Correct me if I'm wrong, but puting an URL into the adressbar, calls the "GET"-method. It seems that GET seems to not be permitted on that side.
This is why I want to use POST.
Here is my Raw data from fiddler. I put some XXX in because of sensitive data
POST
https://www.xxx.com/xxIndex/Bin/downloadindex.asp HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: *******
Accept-Language: de-DE
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host:
www.xxx.com
Content-Length: 442
DNT: 1
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: bac_persist=153523371.26655.0000; ASPSESSIONIDQCRQCRDR=LEKNOIEAIPADGBECJJEJCMNM; BIGipServerbaml_p_debt=338015403.20480.0000; ASPSESSIONIDSCSRDQBR=BAPOABDADENMEIIPGEBJIFBF; BIGipServerbaml_p_core=237352107.20480.0000; ASPSESSIONIDQARQBSAQ=KKPABBDAIOJOGBBBIKDBCIFH; ASPSESSIONIDACSTASDS=BGOAABDADLGGBOKJKHJJDMIF; dtCookie=F6EB08CF5664E29A68BF6D68297BDDA1|xxx.com|1|_default|1; dtPC=-; WT_FPC=id=218a7f4713c753916c91445518194146:lv=1445518252955:ss=1445518194146; dtLatC=33|51.5|15; SMSESSION=xF+RxFjEGPZHYPL8djfEWIAjysdyNjZhAvyiVG4sSNrUvnZnqgYTiHfcjppab/Lw4fjZKhXnkPuQU5fv3AP9hHBtc7F1rbpKDU7riwUxMF4ndduAmwjERJHQvlbreIDsB0MHUFnnR6ngdch7h0qpcFkxUKBh48sPnkgYAfaY+4SIsMCk38TsHGsbutfYzA4Tt8XmKgwfgryxuwvwcMD5GLBgEIPwUiC9PiJuAzHyZIGsHlAlu4HEFB7Jz2EYgfFDwtXgedaIJ6GaSSC3JJ8hs+8RYZ5l7FKmYDkuw0kqxk7yXFBV0gdx8MKMTNH1Ti1db6SG6JGPmheEXdJh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hmpJ/gXhra5Eh2+W9teLeJD4J4xBG32OpUofK8VlInn04/w17JhOqFy6c4vFkD2YK0QlRNx2dUIhXxcms+Lxn3M8mHWKg2JpHNTO1Wzk//9ye6vdoh30HwkxBG1GW0oSW5zsQYzKrKwuME84ap89BZQbaUl90Tb74OXRTXpWJeKNGTIqWTv6evWla0QhfyRsGx4HcuLLU76vyAkAqwXI/PrJGpSVvVR2mMtqQ==; TCA_PRD=1; DMBRAND=MLX
datevalue=10%2F21%2F2015&hdnAsofdate=10%2F21%2F2015&hidCuspID=&ColState=&hdnSrcApp=&hdnPortID=&hdnMthEndDate=&hdnViewState=&txtIndex=ECV0&txtFromDate=10%2F21%2F2015&SelOldNew=1&cboConfiguration=13023&cboFilter=0&iPage=&IndexVal=&Param1=&strWhere=&Param2=&SortVariable=&SortVariable1=&SortVariable2=&SortVariable3=&SortBy1=&SortBy2=&SortBy3=&SortString=&SortType=&Download=&OrderBy=&ConfigId=13023&CriteriaID=&NoOfConfig=&Source=1&ProfileName=
The last part is the request send.
I tried to combine the request and adress to a complete URL. Entering it into the adressbar (when logged in) didn't work.
In addition: Using the following URLDownloadToFile-Sub gives me a strange result (downloading the source code of the website):
Sub URLDOWN()
Dim strUrl As String
strUrl = "https://www.xxx.com/MLIndex/Bin/downloadindex.asp?datevalue=10%2F22%2F2015&hdnAsofdate=10%2F22%2F2015&hidCuspID=&ColState=&hdnSrcApp=&hdnPortID=&hdnMthEndDate=&hdnViewState=&txtIndex=Q694&txtFromDate=10%2F22%2F2015&SelOldNew=1&cboConfiguration=13023&cboFilter=0&iPage=&IndexVal=&Param1=&strWhere=&Param2=&SortVariable=&SortVariable1=&SortVariable2=&SortVariable3=&SortBy1=&SortBy2=&SortBy3=&SortString=&SortType=&Download=&OrderBy=&ConfigId=13023&CriteriaID=&NoOfConfig=&Source=1&ProfileName="
Dim strSavePath As String
Dim returnValue As Long
strSavePath = "C:\Users\yyy\Downloads\Awesome.csv"
returnValue = URLDownloadToFile(0, strUrl, strSavePath, 0, 0)
If returnValue = 0 Then
MsgBox "xxxx downloaded OK!"
Else
MsgBox "Tray again or exit"
End If
End Sub