Form Login with HTTP Request

Post Reply
User avatar
PrepressNinja
Newbie
Posts: 8
Joined: Fri Feb 16, 2018 5:46 pm

Form Login with HTTP Request

Post by PrepressNinja »

Howdy all,

We have an EFI ePace server that I'd like to have Switch login to, run a report, and ingest the PDF returned. I have tried using POST with basic authentication and no authentication with a Body and Headers. I even tried both at once! All I get returned is an HTML file of the login page, which clearly didn't fill the form and "login". Below is the body I tried (personal identifiers replaced), otherwise I just used the basic auth user/pass combo. Anyone here have luck with something similar? Many thanks for reading!

Code: Select all

POST /users/login HTTP/1.1
HOST: https://pace.mycompanyname.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 45

j_username=User Useruser&j_password=Pass-pass
▬▬ι═══════ﺤ
BenjaminBark
Newbie
Posts: 1
Joined: Wed Apr 02, 2025 8:57 am

Re: Form Login with HTTP Request

Post by BenjaminBark »

PrepressNinja wrote: Wed Mar 19, 2025 2:59 pm Howdy all,

We have an EFI ePace server that I'd like to have Switch login to, run a report, and ingest the PDF returned. I have tried using POST with basic authentication and no authentication with a Body and Headers. I even tried both at once! All I get returned is an HTML file of the login page, which clearly didn't fill the form and "login". Below is the body I tried (personal identifiers replaced), otherwise I just used the basic auth user/pass combo. Anyone here have luck with something similar? Many thanks for reading!poor bunny

Code: Select all

POST /users/login HTTP/1.1
HOST: https://pace.mycompanyname.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 45

j_username=User Useruser&j_password=Pass-pass
Hi, I ran into a similar issue before with form-based login in Switch. Have you tried using a session-based approach with cookies after the initial login POST? Sometimes ePace redirects after login, so capturing and reusing the session ID or auth token might help. Also, using a tool like Postman to inspect the full login flow can reveal hidden headers or redirects you might be missing.
Post Reply