qa:temp:ext:curl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
qa:temp:ext:curl [2009/05/09 11:52] – mattijs | qa:temp:ext:curl [2011/04/06 10:59] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
Where http:// | Where http:// | ||
- | The file that is requisted | + | The file used for testing |
===== With a local file ===== | ===== With a local file ===== | ||
- | Proposal for file fallback. | + | Some cURL tests work with a local file. The '' |
+ | |||
+ | The following piece of code is used to make sure a file is always present. | ||
< | < | ||
// Figure out what handler to use | // Figure out what handler to use | ||
Line 25: | Line 27: | ||
file_put_contents($tempname, | file_put_contents($tempname, | ||
} | } | ||
+ | |||
+ | /* .. your test .. */ | ||
+ | |||
+ | // Cleanup | ||
+ | isset( $tempname ) and unlink( $tempname ); | ||
</ | </ | ||
+ | |||
+ | When the '' |
qa/temp/ext/curl.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1