Hi,
I want to read few files from zip folder through JFrog artifactory http link. I 'm not quite sure how I can solve the issue below:
1) user and password needed when access the link
2) the script I used could have issue that it gave me error
The link I try to access looks like below ( created a fake one to show how it looks like )
http://docker-virtual.artifactory.xxx.com:80/ui/repos/tree/General/Sxxxx/logs/ABC/1111_23456_1_test.zip
below is a draft of script I put together but it doesnt work. I was told I can create API key that can be used to bypass the user and password for sign in but not able to make it work. Can someone help me out here?
request = NewHTTPRequest(
URL( "http://http://docker-virtual.artifactory.xxx.com:80/ui/repos/tree/General/Sxxxx/logs/ABC/1111_23456_1_test.zip" ),
Method( "GET" ),
);
zip = request << Send;
za=open(zip,"zip");
zipfiles=za<<dir;
for (l=1, l<=N Items(zipfiles), l++,
If (
zipfiles[l]== "somelog.log" ,
text=za<<read(zipfiles[l]);
save text file(path1|| todaydate || "log1",text)
)
)