Pentaho | How to make CURL request in Pentaho - pentaho

I have one URL. I want to log in into that URL and download the xml file from that URL link. File should be automatically downloaded. Like in PHP, we have CURL call which send request to URL and download the data.
Do we have anything like this in Pentaho?
I have gone through "HTTP Client" step but I am not getting how to use it to go and download particular file from URL.
Can someone please guide on this? Thanks in advance!

You can use Shell step in jobs
And put following into that step
For Linux,
cd 'location where you want file'
curl 'url'
For Windows
dir 'location where you want file'
curl 'url'

Related

Using Postman-GRPC ,I need to upload a file as request(via postman) to the my GRPC-server

I have a GRPC file-upload server(C#) running and I also have GRPC-client through which I was uploading files to the GRPC server but now I want to upload my file using postman(yes the new postman version supports GRPC) and now I am not able to figure out how to attach/send the file via the GRPC-postman to my GRPC-server ,for example in REST-postman u r able attach the file in body using FORM-DATA tab. can anyone give me a solution to this
Thank you

File upload request failed in Jmeter even after following correct steps

I have followed below steps to upload file in jmeter but it didn't worked. It throws Sorry, an error occurred while trying to execute your request. Please try again I have attached screenshots for more details.
Enabled Use multipart/form-data
Copied the file which is going to upload in /bin directory
I have tried with check/Uncheck Use multipart/form-data but no luck
In my HTTP request I passes action_id=1203 as Query parameters and in Form Parameters I am Passing other parameters like msgId, fieldId etc. but from screenshot you can observe when I execute that it passes my whole form parameters in just one single key of "msgId" I don't know why?
This are the headers which I pass
My Request with Query and Form parameters
File upload tab of http request
After execution request failed with this output. Here it passes all form params in single "msgId" key
F12 - Network request of Webpage form parameters (checked manually on web it works fine. Problem is in my jmeter request)
Just record the file upload using JMeter's HTTP(S) Test Script Recorder and it will generate the relevant HTTP Request sampler and HTTP Header Manager configuration which can be later on correlated/parameterized.
The only thing you need to do is to copy the file you're uploading to "bin" folder of your JMeter installation before recording. File path can be changed to whatever you want afterwards.
Also according to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.5 (or whatever is the latest stable version which is available at JMeter Downloads page) as soon as possible.

How do I upload files to my web server by passing the file path in the URL using Flask?

I am able to upload files through forms using Flask but what I require is to be able to put the local file path in the URL and then flask can upload the file and process it. How do I do this?
well this is just not how a webserver works. If you want it to process the data locally stored on your computer you need to send it via a POST request.
Cheers, T

Downloading PDF report from kibana/elasticsearch using API call

I am trying to generate PDF reports and download them using a script. I followed below instructions.
https://github.com/elastic/kibana/blob/master/docs/user/reporting/automating-report-generation.asciidoc
I am able to queue the report and i also got a download url ()/api/.../download/xyzdrfd but when i am trying wget on the url, It's not working. I have no idea how to download that report using APIs so just tried with wget.
Can anyone tell me how to download the reports from API call?
The download might not be happening due to some redirects happening on the page. Use -L option with curl command to get it working. I did it specifically using the Kibana endpoint to download a PDF file. Replace the username and passsword with the basic auth credentials of yours. Use -o option to specify the downloaded file name. Below is the complete example of the command:
curl -L -u username:password -o download.pdf https://endpoint.com:9244/s/bi-/api/reporting/jobs/download/ktl8n95q001edfc210feaz0r

Postman file uploading: the file path became missing when I close the request tab

I'm uploading files through PUT request and put my file as a Binary into the Body request:
https://i.stack.imgur.com/GXuMa.png
The problem is that the file path became missing once I close the request tab and I try to run through Runner, so this makes it impossible to run it through Runner.
Here's the screencast of what I mean: http://take.ms/ptLCT
Is there a way to save the file path inside the request body?
Thanks in advance for any suggestions!
This seems to be a long standing issue with postman that is still not resolved. It seems you can get around it by using newman instead (postman commandline runner). Alternatively check out Insomnia REST client instead, which seems to support this.