Question
cfhttp efforts continue
I am not sure where to start on this so i thought I would
post my delemma to the forums.
Yesterday I was struggling in finding a cfhttp solution that would allow me to download files that are on a particular page that I manually have to log into everyday to get at.
I realzed that I needed the custom tag cfx_http5 which manages the cookie and session issues.
Now here is my next problem.
On that page are a list of files. If you click those links they download. The links have a variable called batch_num
So it my look like this:
https://somethingcom/cehttp/servlet/MailboxServlet?operation=DOWNLOAD&mailbox_id=something&batch_num=0172735&data_format=A&batch_id=file.bleh
that batch number will be a random number or at least it is not a constant variable
the batch id file will always be the same.
So I am thinking I would need to search the URL for the batch_id and if it matches then some how I grab the file and download it.
How would you guys manage around that batch_number always changing?
functions or code examples would be very helpful...
Yesterday I was struggling in finding a cfhttp solution that would allow me to download files that are on a particular page that I manually have to log into everyday to get at.
I realzed that I needed the custom tag cfx_http5 which manages the cookie and session issues.
Now here is my next problem.
On that page are a list of files. If you click those links they download. The links have a variable called batch_num
So it my look like this:
https://somethingcom/cehttp/servlet/MailboxServlet?operation=DOWNLOAD&mailbox_id=something&batch_num=0172735&data_format=A&batch_id=file.bleh
that batch number will be a random number or at least it is not a constant variable
the batch id file will always be the same.
So I am thinking I would need to search the URL for the batch_id and if it matches then some how I grab the file and download it.
How would you guys manage around that batch_number always changing?
functions or code examples would be very helpful...
