Problem with cookies
Status: Alpha
Brought to you by:
coroberti
From: web l. a. p. t. t. <cur...@li...> - 2007-07-25 10:03:17
|
Arthur, Y are correct. This was broken in 0.32 version. This is a shame on my side to make such a stupid error. My test was not fetching that as well. The matters have been corrected. Thank you. Added you to our THANKS file. If you can provide your surname, it will be added. The patch and commit you can see below. Sincerely, Robert ---------- Forwarded message ---------- From: cor...@us... < cor...@us...> Date: Jul 25, 2007 12:48 PM Subject: SF.net SVN: curl-loader: [488] trunk/curl-loader To: cur...@li... Revision: 488 http://curl-loader.svn.sourceforge.net/curl-loader/?rev=488&view=rev Author: coroberti Date: 2007-07-25 02:47:58 -0700 (Wed, 25 Jul 2007) Log Message: ----------- Bugfix for loading credentials from file. Modified Paths: -------------- trunk/curl-loader/conf-examples/credentials.cred trunk/curl-loader/conf-examples/post-form-tokens-fr-file.conf trunk/curl-loader/doc/QUICK-START trunk/curl-loader/doc/THANKS trunk/curl-loader/parse_conf.c Modified: trunk/curl-loader/conf-examples/credentials.cred =================================================================== --- trunk/curl-loader/conf-examples/credentials.cred 2007-07-22 05:02:20 UTC (rev 487) +++ trunk/curl-loader/conf-examples/credentials.cred 2007-07-25 09:47:58 UTC (rev 488) @@ -1,4 +1,3 @@ -# Separator used here is ':' Use %20, when you need a white space -david:meleh -israel:hai -hai:vkayam +# Separator used here is ',' +david,meleh,israel +hai,hai,vkayam Modified: trunk/curl-loader/conf-examples/post-form-tokens-fr-file.conf =================================================================== --- trunk/curl-loader/conf-examples/post-form-tokens-fr-file.conf 2007-07-22 05:02:20 UTC (rev 487) +++ trunk/curl-loader/conf-examples/post-form-tokens-fr-file.conf 2007-07-25 09:47:58 UTC (rev 488) @@ -1,6 +1,6 @@ ########### GENERAL SECTION ################################ BATCH_NAME= post-form-tokens-fr-file -CLIENTS_NUM_MAX=3 +CLIENTS_NUM_MAX=2 INTERFACE=eth0 NETMASK=24 IP_ADDR_MIN=194.90.71.215 Modified: trunk/curl-loader/doc/QUICK-START =================================================================== --- trunk/curl-loader/doc/QUICK-START 2007-07-22 05:02:20 UTC (rev 487) +++ trunk/curl-loader/doc/QUICK-START 2007-07-25 09:47:58 UTC (rev 488) @@ -16,11 +16,10 @@ files (e.g. crypto.h), export environment variable OPENSSLDIR with the value of that directory. For example: $export OPENSSLDIR=the-full-path-to-the-directory - -Another known issue is libidn.so, which means, that some linux distributions -do have some libidn.so.11, but not libidn.so. Resolve it by creating a softlink. -In some cases, you may be required to remove -lidn from the linking line, -whereas you need to comment a line in Makefile and uncomment another. + +We are building libcurl with --without-libidn option. Users, that would like +to resolve IDNA domain names with "international" letters can edit our +Makefile and use instead --with-libidn=full-path-dir. Run the following commands from your bash linux shell: $tar zxfv curl-loader-<version>.tar.gz Modified: trunk/curl-loader/doc/THANKS =================================================================== --- trunk/curl-loader/doc/THANKS 2007-07-22 05:02:20 UTC (rev 487) +++ trunk/curl-loader/doc/THANKS 2007-07-25 09:47:58 UTC (rev 488) @@ -11,3 +11,4 @@ Aleksandar Lazic <al-...@no...> Jeremy Hicks <je...@no...> John Gatewood Ham < bur...@gm...> +Artur B <ar...@gm...> Modified: trunk/curl-loader/parse_conf.c =================================================================== --- trunk/curl-loader/parse_conf.c 2007-07-22 05:02:20 UTC (rev 487) +++ trunk/curl-loader/parse_conf.c 2007-07-25 09:47:58 UTC (rev 488) @@ -213,7 +213,7 @@ size_t input_length, form_records_cdata* form_record, size_t record_num, - char* separator); + char** separator); static int add_param_to_batch (char*const input, size_t input_length, @@ -388,17 +388,17 @@ size_t input_len, form_records_cdata* form_record, size_t record_num, - char* separator) + char** separator) { - const char separators_supported [] = + const char* separators_supported [] = { - ',', - ':', - ';', - ' ', - '@', - '/', - '\0' + ",", + ":", + ";", + " ", + "@", + "/", + 0 }; char* sp = NULL; int i; @@ -416,9 +416,9 @@ { for (i = 0; separators_supported [i]; i++) { - if ((sp = strchr (input, separators_supported [i]))) + if ((sp = strchr (input, *separators_supported [i]))) { - *separator = *sp; /* Remember the separator */ + *separator = (char *) separators_supported [i]; /* Remember the separator */ break; } } @@ -429,9 +429,10 @@ "%s - failed to locate in the first string \"%s\" \n" "any supported separator.\nThe supported separators are:\n", __func__, input); + for (i = 0; separators_supported [i]; i++) { - fprintf (stderr,"\"%c\"\n", separators_supported [i]); + fprintf (stderr,"\"%s\"\n", separators_supported [i]); } return -1; } @@ -440,9 +441,9 @@ char * token = 0, *strtokp = 0; size_t token_count = 0; - for (token = strtok_r (input, separator, &strtokp); + for (token = strtok_r (input, *separator, &strtokp); token != 0; - token = strtok_r (0, separator, &strtokp)) + token = strtok_r (0, *separator, &strtokp)) { size_t token_len = strlen (token); @@ -2687,7 +2688,7 @@ { char fgets_buff[512]; FILE* fp; - char sep; + char* sep = 0; // strtok_r requires a string with '\0' /* Open the file with form records @@ -2737,6 +2738,16 @@ continue; } + if (fgets_buff[string_len - 2] == '\r') + { + fgets_buff[string_len - 2] = '\0'; + } + + if (fgets_buff[string_len -1] == '\n') + { + fgets_buff[string_len -1] = '\0'; + } + if ((int)url->form_records_num >= bctx->client_num_max) { fprintf (stderr, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ curl-loader-tracker mailing list cur...@li... https://lists.sourceforge.net/lists/listinfo/curl-loader-tracker -- Sincerely, Robert Iakobashvili, coroberti %x40 gmail %x2e com ........................................................... http://curl-loader.sourceforge.net A web testing and traffic generation tool. |