Curl seems to be giving me conflicting response when i POST, GET or PATCH. Using POST/GET i can see that my target IP address (10.130.9.35) exists as below. However, trying to update it using PATCH results in an error. GET: -Message:curl -X GET https://xxxxxxxx/phpipam/api/dev/addresses/ –header ‘token: xxxxxxxxxx’ –header “Content-Type: application/json” -Response: {“id”:”15″,”subnetId”:”13″,”ip”:”10.130.9.35“,”is_gateway”:”0″,”description”:”12345″,”hostname”:null,”mac”:null,”owner”:null,”tag”:”2″,”deviceId”:null,”location”:null,”port”:null,”note”:null,”lastSeen”:”1970-01-01 00:00:01″,”excludePing”:”0″,”PTRignore”:”0″,”PTR”:”0″,”firewallAddressObject”:null,”editDate”:null,”customer_id”:null,”custom_Location (Coordinates)”:null,”custom_Latitude”:”12345″,”custom_Longitude”:”12345″,”custom_CID”:”12345″} POST: […]
While each product featured is independently selected by our editors, we may include paid promotion. If you buy something through our links, we may earn commission. Read more about our Product Review Guidelines here. There’s no denying that we’re in an era where iconic beauty trends of decades past are back in a big way. […]
This week, Jonathan Bennett and Randal Schwartz chat with Daniel Stenberg about curl! How many curl installs are there?! What’s the deal with CVEs? How has curl managed to not break its ABI for 18 years straight? And how did Daniel turn all this into a career instead of just a hobby? Watch to find […]
curl is one of those great utilities that’s been around seemingly forever and has endless use cases. These days I find myself using curl to batch download files and test APIs. Sometimes my testing leads me to using different HTTP headers in my requests. To add a header to a curl request, use the -H […]