Need help finding way to request download by POST

8 views
Skip to first unread message

Matthias Bretz

unread,
Jun 20, 2023, 6:03:00 AM6/20/23
to autopkg-discuss
Hi, I need some help.

I'm trying to find a way to write a download-recipe for the software offered on this site (subsite: Descargas):

At least I found that some java-functions (http://www.componentefirmacr.go.cr/componenteFirmaCR/js/functions.js) are calling an in time build form with POST action to http://www.componentefirmacr.go.cr/componenteFirmaCR/DownloadFile

This is the curl-command as far as I got but I can't get it to work:
curl -X POST -d "seq=362&email=useless&action=saveEmail&version=3.0.13" -H "Origin: http://www.componentefirmacr.go.cr/componenteFirmaCR/" http://www.componentefirmacr.go.cr/componenteFirmaCR/DownloadFile -o ~/Downloads/Installer.pkg

Any help would be highly appreciated.

Kind regards Matthias

Elliot Jordan

unread,
Jun 20, 2023, 7:52:08 AM6/20/23
to autopkg...@googlegroups.com
Hi Matthias,

I solved two similar situations by creating *URLProvider processors. One is CorelURLProvider and one is ezeepURLProvider.

You're on the right track testing with `curl` first. Once you get a `curl` command that works, fitting it into the examples above should be straightforward.

With some help from the Chrome inspector, I had success with this:

  -X POST \
  --data-raw 'hidden_seq=362' \
  --compressed \
  --insecure \
  -o ~/Downloads/Installer.pkg

Elliot


Wuppertal Institut fuer Klima, Umwelt, Energie gGmbH l Sitz der Gesellschaft/Registered Office: Wuppertal, Germany;
Registergericht/Registered at: Amtsgericht Wuppertal, Germany l Eintragungs-Nr./Registration no.: HRB 7619;
USt.-ID Nr./VAT ID No.: DE 121 091 633
Praesident und wissenschaftlicher Geschaeftsfuehrer/ President and Scientific Managing Director: Prof. Dr. Manfred Fischedick
Kaufmaennischer Geschaeftsfuehrer/ Administrative Managing Director: Michael Dedek
Aufsichtsratsvorsitzende/Chairwoman of the Supervisory Board: Staatssekretaerin/State Secretary Silke Krebs

--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autopkg-discuss/15b0789d-3e4b-477b-a870-cc6e759c1576n%40googlegroups.com.

Matthias Bretz

unread,
Jun 21, 2023, 4:00:51 AM6/21/23
to autopkg-discuss
Thanks a lot Elliot,

guess I have to educate myself about using the Chrome inspector.
For the moment I had success with integrating a shell script for the download part.
Will now try to modify a custom processor to do the job.

Kind regards Matthias

Reply all
Reply to author
Forward
0 new messages