The returned result is a JSON string, but I use curl-l .... but cannot get the returned {code ...} the returned result is a JSON string, but I use curl-l http ://.... but cannot be obtained
Return
404 Not Found404 Not FoundThe requested URL /mauth/usr/exists was not found on this server.
Reply content:
The returned result is a JSON string, but I cannot get it using curl-l http: //...
Return
404 Not Found404 Not FoundThe requested URL /mauth/usr/exists was not found on this server.
The problem was later found to be a problem with the network link. The host running curl is isolated from the target server and cannot access each other. It hurts!
User-Agent, Cookies, Accept, Referer, and other parameters will affect the request results.
I usually use Fiddler to find out the minimum required parameters and cookies, and then obtain the curl.
The latest version of chrome's javascript debugging tool already supports Curl replication (it can fully simulate browser access, including header, cookie, and operating system information ), specifically, the network is knocked down first, and then the page is accessed, right-click the list point, there is a copy as curl. Then work with curl directly
The URL is wrong... or the server restricts the User-Agent...
Use–user-agent
Simulate other browsers to see...