Ik ben een beetje aan het kloten met curl, maar ik krijg het niet voor elkaar.
in php_response.txt staat niets (0 bytes)
in php_err.txt staat
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <? $ch = curl_init ("https://secure-test.bibit.com/jsp/merchant/xml/paymentService.jsp"); $fp = fopen ("php_response.txt", "w"); $fp1 = fopen ("php_err.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_STDERR, $fp1); curl_setopt ($ch, CURLOPT_VERBOSE, 1); curl_setopt ($ch, CURLOPT_MUTE, 0); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt ($ch, CURLOPT_FAILONERROR, 0); curl_setopt ($ch, CURLOPT_SSLVERSION, 2); curl_setopt ($ch, CURLOPT_USERPWD, "***:***"); // undocumented feature... gebruik een randombestandje... curl_setopt ($ch, CURLOPT_RANDOM_FILE, "c:\PUTTY.RND"); echo curl_version(); echo curl_exec ($ch); curl_close ($ch); fclose ($fp); ?> |
in php_response.txt staat niets (0 bytes)
in php_err.txt staat
code:
1
| * Closing live connection (#0) |
Localhost, sweet localhost