Ci voleva Google Chrome : Copia come cURL

cURL è stato per tanti anni la mia soluzione veloce a svariati problemi. Da qualche tempo Google Chrome (credo che sia stato il primo) ha inserito una funzionalità chiamata appunto Copy as cURL, questa funzione restituisce una cosa “bellissima”, la linea di comando cURL completa per ogni richiesta HTTP che il browser esegue. Questa funzione è facilmente accessibile dalla console degli strumenti di sviluppo Google Chrome (vedere le figure a seguire). Questa funzionalità la trovo davvero comoda, in particolar modo quando occorre costruire uno script che ad esempio debba accedere a dati esposti da un servizio (per esempio REST).

Buon cURL a tutti.

Figure 1 - HTTP Request

Figure 1 – HTTP Request

Figure 2 - HTTP Request Content

Figure 2 – HTTP Request Content

Figure 3 - Copy HTTP Request as cURL

Figure 3 – Copy HTTP Request as cURL

0 Condivisioni

Antonio Musarra

I began my journey into the world of computing from an Olivetti M24 PC (http://it.wikipedia.org/wiki/Olivetti_M24) bought by my father for his work. Day after day, quickly taking control until … Now doing business consulting for projects in the enterprise application development using web-oriented technologies such as J2EE, Web Services, ESB, TIBCO, PHP.

Potrebbero interessarti anche...