View Issue Details

IDProjectCategoryView StatusLast Update
0010333libmicrohttpddocumentationpublic2025-09-02 21:58
Reporterxtforever Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status newResolutionopen 
Product Version1.0.0 
Summary0010333: example/simplepost.c not working
Descriptioniterate_post should return MHD_YES
Steps To Reproducerun examples/samplepost

TagsNo tags attached.

Activities

xtforever

2025-09-02 21:58

reporter   ~0025790

Working version:

static enum MHD_Result
iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key,
              const char *filename, const char *content_type,
              const char *transfer_encoding, const char *data, uint64_t off,
              size_t size)
{
  struct connection_info_struct *con_info = coninfo_cls;
  (void) kind; /* Unused. Silent compiler warning. */
  (void) filename; /* Unused. Silent compiler warning. */
  (void) content_type; /* Unused. Silent compiler warning. */
  (void) transfer_encoding; /* Unused. Silent compiler warning. */
  (void) off; /* Unused. Silent compiler warning. */

  if ( strcmp (key, "name") ) return MHD_YES;
  if( size < 0) return MHD_NO;
  if( size > MAXNAMESIZE ) return MHD_NO;
  asprintf (&con_info->answerstring, GREETINGPAGE, data);
  return MHD_YES;
}

Issue History

Date Modified Username Field Change
2025-09-02 21:57 xtforever New Issue
2025-09-02 21:58 xtforever Note Added: 0025790