诸暨麻将添加redis
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

103 wiersze
2.4 KiB

  1. <testcase>
  2. # Based on test808
  3. <info>
  4. <keywords>
  5. POP3
  6. LIST
  7. --libcurl
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. REPLY LIST +OK 1407 100\r\n.
  15. </servercmd>
  16. </reply>
  17. #
  18. # Client-side
  19. <client>
  20. <server>
  21. pop3
  22. </server>
  23. <name>
  24. POP3 LIST one message
  25. </name>
  26. <command>
  27. pop3://%HOSTIP:%POP3PORT/1407 -l -u user:secret --libcurl log/test1407.c
  28. </command>
  29. </client>
  30. #
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <protocol>
  34. CAPA
  35. USER user
  36. PASS secret
  37. LIST 1407
  38. QUIT
  39. </protocol>
  40. <file name="log/test1407.c" mode="text">
  41. /********* Sample code generated by the curl command line tool **********
  42. * All curl_easy_setopt() options are documented at:
  43. * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
  44. ************************************************************************/
  45. #include <curl/curl.h>
  46. int main(int argc, char *argv[])
  47. {
  48. CURLcode ret;
  49. CURL *hnd;
  50. hnd = curl_easy_init();
  51. curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/1407");
  52. curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
  53. curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L);
  54. curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
  55. curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
  56. curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
  57. curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
  58. curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
  59. /* Here is a list of options the curl code used that cannot get generated
  60. as source easily. You may select to either not use them or implement
  61. them yourself.
  62. CURLOPT_WRITEDATA set to a objectpointer
  63. CURLOPT_WRITEFUNCTION set to a functionpointer
  64. CURLOPT_READDATA set to a objectpointer
  65. CURLOPT_READFUNCTION set to a functionpointer
  66. CURLOPT_SEEKDATA set to a objectpointer
  67. CURLOPT_SEEKFUNCTION set to a functionpointer
  68. CURLOPT_ERRORBUFFER set to a objectpointer
  69. CURLOPT_STDERR set to a objectpointer
  70. CURLOPT_DEBUGFUNCTION set to a functionpointer
  71. CURLOPT_DEBUGDATA set to a objectpointer
  72. CURLOPT_HEADERFUNCTION set to a functionpointer
  73. CURLOPT_HEADERDATA set to a objectpointer
  74. */
  75. ret = curl_easy_perform(hnd);
  76. curl_easy_cleanup(hnd);
  77. hnd = NULL;
  78. return (int)ret;
  79. }
  80. /**** End of sample code ****/
  81. </file>
  82. <stripfile>
  83. # curl's default user-agent varies with version, libraries etc.
  84. s/(USERAGENT, \")[^\"]+/${1}stripped/
  85. # CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
  86. # ignore them
  87. $_ = '' if /CURLOPT_SSL_VERIFYPEER/
  88. $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
  89. </stripfile>
  90. </verify>
  91. </testcase>