Skip to main content
Question

How to access a zipfile via a POST request?

  • October 6, 2020
  • 5 replies
  • 22 views

lambertus
Enthusiast
Forum|alt.badge.img+24

I need to download data from this website:

https://www.ep-online.nl/ep-online/PublicData

 

Beside that, I have access to the api key.

 

I would like to use the HTTP caller to download data from this website. However, I could not figure out which parameters to use in the transformer. Using the browser console it seems that I need a POST request?

Beside that I doubted where to fill the api key in the HTTP caller?

 

See attached the message from the browser console.

 

EP online aanvraag energielabels

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

david_r
Celebrity
  • October 6, 2020

What is the content-type (see the header) of the POST?

It looks like the apiKey value is inserted as key/value form data. My first hunch would be to pass the apiKey and other parameters like this:

2020-10-06 11_17_13-__._DISPLAY1


lambertus
Enthusiast
Forum|alt.badge.img+24
  • Author
  • Enthusiast
  • October 6, 2020

Thanks @david_r​ for your reply! Find attached the response and request headers. I guess the request header is one of interest? The content-type I see there is: application/x-www-form-urlencoded

 

Furthermore, I should somewhere put the name of the zipfile to download in the HTTP caller. In general terms, do you have some advice how to derive from the browser console the necessary info to get a working HTTP request?

 

Request and response headers

 

 

 


lambertus
Enthusiast
Forum|alt.badge.img+24
  • Author
  • Enthusiast
  • October 9, 2020

Somehow I only see your reply @david_r​  in the top right corner of my screen. The API documentation of this website is not that good. I tried the Telerik website, looks interesting, until now, no results in finding out what parameters I need.


david_r
Celebrity
  • October 9, 2020

Somehow I only see your reply @david_r​  in the top right corner of my screen. The API documentation of this website is not that good. I tried the Telerik website, looks interesting, until now, no results in finding out what parameters I need.

Unfortunately these things can vary a lot between APIs and websites and there is no real standard on how to handle it, so it's almost impossible to give specific advice on a general basis. My recommandation would be to team up either with the IT support of the server in question, or with your local FME partner:

https://www.safe.com/partners/partner-locator/


lambertus
Enthusiast
Forum|alt.badge.img+24
  • Author
  • Enthusiast
  • October 10, 2020

Yeah, thats right! Thanks for your support anyway.