Login on external site (prefeitura Curitiba)

Asked

Viewed 54 times

0

I need to pull from a city website if a particular company has issued tax notes.

No problem if the user needs to enter the boxes manually.

The link is this: https://isscuritiba.curitiba.pr.gov.br/iss/

I don’t want something ready, I want to know what exactly I need to study to be able to do this, because I can’t find how this site passes the parameters to the server so I can simulate that PHP is browsing through it.

  • Have you tried using Curl simulating agent?

  • The problem is not in itself in what to do, but in that I can not find how this site performs its requests so I can simulate the submissions, but I did not try this, I saw an example, but I could not apply, there is some source of information about it ?

  • From what I saw here in the source code of the site, when it is clicked on the button "Login" is called the function "__doPostBack" which in turn picks up a form with fields of type "Hidden" and "Submit" calling the page itself, "default.aspx". So the processing takes place inside the page itself, these fields Hidden I mentioned, have one of them, which is some kind of checker since each updated on the page the value is exchanged, IE, you need it if you want to login.

  • You will need the fields type Hidden of the form 'frmLogin' page and get through file_get_contents or Curl the value of the field PFZ__VIEW__ID scanning the HTML before login attempt

  • I found this official developer support forum: http://pilotoisscuritiba.curitiba.pr.gov.br/forum_boanota/ maybe you can find an answer there.

  • 1

    @lucasvscn our, had not found this forum, probably someone must have tried it before, I will do a search on the topics.

  • @Brunofolle managed to pass the login values to the page, but it’s complicated to make the server accept this external login, Monday I’ll call the city to see if they offer developer support, I think that there is some kind of security inside this site that blocks this type of external access via Curl or trying to load and send from another location the parameters, but as soon as I can (if possible) I put here as it was done .

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.