![]() ![]() Making a request to C:\wnmp\curl>curl.exe -trace-ascii -H 'project1.loc' -d "uuid=d99a49d846d5ae570 This option can be used multiple times to load multiple config files. On UNIX-like systems, it will simply try to load. On Windows, it then checks for the APPDATA variable, or as a last resort the '%USERPROFILE%\Application Data'.Ģ) On windows, if there is no _curlrc file in the home dir, it checks for one in the same dir the curl executable is placed. ![]() Failing that, it uses getpwuid() on UNIX-like systems (which returns the home dir The default config file is checked for in the following places in this order:ġ) curl tries to find the "home dir": It first checks for the CURL_HOME and then the HOME environment variables. When curl is invoked, it always (unless -q is used) checks for a default config file and uses it if found. Long option names can optionally be given in the config file without the initial double dashes. Note that to be able to specify a URL in the config file, you need to specify it using the -url option, and not by simply writing the URL on its own line. Specify the filename to -K/-config as '-' to make curl read the file from stdin. If the first column of a config line is a '#' character, the rest of the line will be treated as a comment. ![]() A backslash preceding any other letter is ignored. Within double quotes, the following escape sequences are available: \, \", \t, \n, If the parameter is to contain whitespace, the parameter must be enclosed within quotes. Options and their parameters must be specified on the same config file line, separated by whitespace, colon, the equals sign or any combination thereof (however, the preferred separa. The config file is a text file in which command line arguments can be written which then will be used as if they were written on the actualĬommand line. Specify which config file to read curl arguments from. If this option is used several times, the last one will be used. This option overrides previous uses of -v/-verbose or -trace-ascii. Use "-" as filename to have the output sent to stdout. The options that are relevant in curl are hereĮnables a full trace dump of all incoming and outgoing data, including descriptive information, to the given output file. I would get the curl request working on the command line, and then try to implement in PHP. If you are missing host or header information - you can force those headers with the config option. Does the server actually get the requests, and are you handling the host name (alias) properly?Ĭheck your webserver log, to see how the request came in.Ĭurl has options to dump the request sent, and response received, it is called trace, which will will be saved to a file. ![]()
0 Comments
Leave a Reply. |