How to how to connect to a site and download a file by passing in POST certain parameters

Six Stars

How to how to connect to a site and download a file by passing in POST certain parameters

Hello,
I would like to download a file from a website using the POST method.

The file is downloaded by calling the page: https://lapage.com/downloadFile.php and passing the POST information below:

  • Nickname: User nickname
  • Password: User password
  • Date: Date of the desired file in YYYY-MM-DD format

In return for this call, the server will return the stream of the zipped file or an error message in json format.

 

I need help please !!


Accepted Solutions
Twelve Stars

Re: How to how to connect to a site and download a file by passing in POST certain parameters

just have a look to :
https://help.talend.com/reader/tM3os~7PoPzBK28jtBNgCw/eZTKh9lTYRCM323c7LKanw
regards,

Francois Denis

Tag as "solved" for others! Kudos to thanks!

View solution in original post

Seven Stars

Re: How to how to connect to a site and download a file by passing in POST certain parameters

Hi,

Looks like link is not working. Please check once the web link if works fine in Postman (its an utility helps to post APIs and check response, kind of testing). Then replicate the same in tHttpRequest component.

 

Thanks.

 

View solution in original post


All Replies
Twelve Stars

Re: How to how to connect to a site and download a file by passing in POST certain parameters

just have a look to :
https://help.talend.com/reader/tM3os~7PoPzBK28jtBNgCw/eZTKh9lTYRCM323c7LKanw
regards,

Francois Denis

Tag as "solved" for others! Kudos to thanks!

View solution in original post

Six Stars

Re: How to how to connect to a site and download a file by passing in POST certain parameters

bUT RESPONSE IS cONNECTION TIMEOUT
Seven Stars

Re: How to how to connect to a site and download a file by passing in POST certain parameters

Hi,

Looks like link is not working. Please check once the web link if works fine in Postman (its an utility helps to post APIs and check response, kind of testing). Then replicate the same in tHttpRequest component.

 

Thanks.

 

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog