curl-converter
curl-converter copied to clipboard
Online tool to convert `curl` requests to Laravel `Http` requests
This is an automated pull request from [Shift](https://laravelshift.com) to update your package code and dependencies to be compatible with Laravel 11.x. **Before merging**, you need to: - Checkout the `l11-compatibility`...
### Added - Support of insecure request #33
### Problem I'm trying to enter the command on `https://laravelshift.com/convert-curl-to-http` ```sh curl --insecure -X POST http://example.com -H 'User: AAA' -d '{"data":"some"}' ``` Result of this: ```php Http::withBody('{"data":"some"}') ->withHeaders([ 'User' =>...
curl -X POST --key encryptedWithPassword.key --cert certificate.crt https://laravel.com
Curl ``` curl --location --request POST 'http://localhost:3000/id/messages/send' \ --data-raw '{ "jid": "01234567890", "type": "group", "message": { "text": "Hello" } }' ``` Convert ``` Http::withBody('{ "jid": "01234567890", "type": "group", "message": {...
curl --cert s.pem --key b.key -d 'grant_type=client_credentials&client_id=c&client_secret=c' https://accounts.ccc.com/auth/oauth/v2/token
Following CURL request from Auth0 examples is not working: ``` curl --request POST --url https://signalcortex.us.auth0.com/oauth/token --header 'content-type: application/json' --data '{"client_id":"qwertyuiopasdfghqwertyuiopasdfgh","client_secret":"qwertyuiopasdfghqwertyuiopasdfghqwertyuiopasdfghqwertyuiopasdfgh","audience":"https://signalcortex.us.auth0.com/api/v2/","grant_type":"client_credentials"}' ```
From the Transitor API docs: ``` curl -v -X PUT \ -H "Content-Type: audio/mpeg" \ -T /path/to/your/audio/Episode1.mp3 \ "upload_url_from_authorize_upload" ``` The Content-Type header and `-T` option can be replaced with...
Currently backslashes (and possibly other characters) are being lost from values as they are passed through Artisan. These need to be escaped so they are preserved in the final output....
curl 'https://graphigo.prd.dlive.tv/' --data-binary '{"query":"query{userByDisplayName(displayname: \"Potato\") {username displayname avatar partnerStatus followers{totalCount}}}"}'