~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to tests/libtest/lib547.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: lib547.c,v 1.5 2008-05-22 21:49:53 danf Exp $
 
8
 * $Id: lib547.c,v 1.7 2009-05-08 02:14:50 yangtse Exp $
9
9
 *
10
10
 * argv1 = URL
11
11
 * argv2 = proxy
14
14
 
15
15
#include "test.h"
16
16
 
17
 
#define UPLOADTHIS "this is the blurb we want to upload\n"
 
17
#include "memdebug.h"
 
18
 
 
19
#ifdef CURL_DOES_CONVERSIONS
 
20
   /* ASCII representation with escape sequences for non-ASCII platforms */
 
21
#  define UPLOADTHIS "\x74\x68\x69\x73\x20\x69\x73\x20\x74\x68\x65\x20\x62" \
 
22
                     "\x6c\x75\x72\x62\x20\x77\x65\x20\x77\x61\x6e\x74\x20" \
 
23
                     "\x74\x6f\x20\x75\x70\x6c\x6f\x61\x64\x0a"
 
24
#else
 
25
#  define UPLOADTHIS "this is the blurb we want to upload\n"
 
26
#endif
18
27
 
19
28
#ifndef LIB548
20
29
static size_t readcallback(void  *ptr,