Consult Receita Federal website data with PHP

Asked

Viewed 737 times

0

Performing a search, I found some examples fill out forms from third-party websites and capture the answer. Most of these examples use the PHP Curl library.

On the website gigasystem, there is a code that shows how to do, including using captcha.

I would like to go a little further, to "login" on the site. I made modifications to the code, but without success. I imagine not sending the information correctly, IE, I do not know exactly the identification of the parameters to be sent via POST.

Is there any way to find out?

  • 1

    First you have to know what the fields and fields names and url for the post to be sent etc, then you can login with Curl if the server allows.

  • @rafaelphp thanks for the reply. Really, the most important thing is to know the url to where the post is sent, how to find out? Seeing by form html looks like it sends to itself. I don’t know if it’s correct, or it’s some way to make it harder...

1 answer

1

Hello. You can use the Fiddler tool to inspect the web requests that are made when performing each action on the desired site. In Fiddler you can see the parameters of requests, cookies and other useful information.

  • Thanks for the @Joelrodrigues reply. I tested Fiddler, but I can’t find the part of the requests. Can you give me a "Light"?

  • See if this article helps you: http://www.devmedia.com.br/utilitario-fiddler-monitoringofweb-services/31274. I explain how to use Fiddler to monitor services.

Browser other questions tagged

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