|
From: | Ludovic Coralie |
Subject: | [libmicrohttpd] Post request / upload_data / received request data packet |
Date: | Wed, 24 Jun 2015 15:32:21 +0200 |
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <microhttpd.h>
#define MAX_ANSWER_LENGTH 100000
#define PORT 8890
static char *empty_answer="";
#define JSON_CONTENT_TYPE "application/json; charset=utf-8"
typedef enum {
URL_COURSE,
URL_MAX=URL_COURSE,
} CommandNum;
typedef struct _Command
{
char *url;
CommandNum num;
} Command;
Command commands[]= {
{"/interface1/course", URL_COURSE}
};
#define MHD_HTTP_VERSION_1_0 "HTTP/1.0"
//#define MHD_HTTP_VERSION_1_1 "HTTP/1.1"
const char *greetingpage = "<html><body><h1>Welcome, %s!</center></h1></body></html>\n";
static int ii =0;
static int connection_num=0;
char LesDatas[200001];
typedef struct _post_data
{
long connection;
int index;
char user_name[20 + 1];
int user_id;
char user_type;
long call_nbr;
char ticket[ 16 ];
char phone_nbr[ 40 + 1 ];
char *received_data;
int http_status;
int status_code;
int error_code;
char answer[MAX_ANSWER_LENGTH+1];
} PostData;
static int
answer_to_connection (void *cls, struct MHD_Connection *connection,
const char *url, const char *method,
const char *version, const char *upload_data,
size_t *upload_data_size, void **con_cls)
{
struct MHD_Response * response;
int ret;
printf("je passe en 00 ii '%d'\n",ii);
if (NULL == *con_cls)
{
memset(LesDatas, 0, sizeof(LesDatas));
printf("je passe ici 0 11 \n");
*con_cls = connection;
return MHD_YES;
}
/*if (NULL == *con_cls)
{
connection_num = (++connection_num) % 1000000;
PostData *data="">
data = "" *) malloc(sizeof(PostData));
if (data="">
{
printf("je passse icic 1 \n");
response=MHD_create_response_from_buffer (strlen(empty_answer), empty_answer, MHD_RESPMEM_PERSISTENT);
ret=MHD_add_response_header (response, MHD_HTTP_HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);
ret=MHD_queue_response (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, response);
MHD_destroy_response (response);
return ret;
}
memset(data, 0, sizeof(PostData));
data->http_status=MHD_HTTP_OK;
data->connection = connection_num;
*con_cls = (void *) data;
printf("*con_cls '%s' \n",*con_cls);
printf("data.answer '%s' MHD_YES '%d' \n",data->answer,MHD_YES);
return MHD_YES;
}*/
if (*upload_data_size != 0)
{
printf("je suis ici 22 \n");
ii++;
printf("url '%s'\n",url);
printf("strlen(upload_data) '%d' \n",strlen(upload_data));
printf("'%d' upload_data '%s' \n",ii,upload_data);
printf("method '%s' \n",method);
printf("version '%s' \n",version);
strcat(LesDatas,upload_data);
printf("je suis ici 22.1 \n");
*upload_data_size = 0;
//free(upload_data_size);
//upload_data_size=NULL;
return MHD_YES;
}
else
{
printf("je suis ici 33 \n");
printf("strlen(LesDatas) '%d' \n",strlen(LesDatas));
printf("LesDatas'%s' \n",LesDatas);
// *ptr = NULL; /* clear context pointer */
response = MHD_create_response_from_buffer (strlen(greetingpage), (void *) greetingpage, MHD_RESPMEM_MUST_COPY);
ret = MHD_queue_response(connection,MHD_HTTP_OK,response);
MHD_destroy_response(response);
printf("je sort iIICICIIII 10 ret '%d' \n",ret);
return MHD_YES; //ret
printf("je suis sortie avant \n");
return ret;
}
}
int
main ()
{
struct MHD_Daemon *daemon;
/*daemon = MHD_start_daemon (MHD_USE_PEDANTIC_CHECKS, PORT, NULL, NULL,
&answer_to_connection, NULL, MHD_OPTION_END);
#define MHD_HTTP_VERSION_1_0 "HTTP/1.0"
*/
daemon = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION, PORT, NULL, NULL,
&answer_to_connection, NULL, MHD_OPTION_END);
if (NULL == daemon)
return 1;
getchar ();
MHD_stop_daemon (daemon);
return 0;
}
Here my request:
{"clientId":4,"uuid":"0c2e1816-d8bc-4261-8e8f-d8cfc90d5613","nUi":1,"courses":[{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}}]}
Here this is what libmicrohttpd receive:
strlen(upload_data) '2896'
'1' upload_data '{"clientId":4,"uuid":"0c2e1816-d8bc-4261-8e8f-d8cfc90d5613","nU i":1,"courses":[{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneApp elant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"060708090 0","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPc kupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1" ,"comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumbe r":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","t ypeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciL ambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRA ND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":" X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure" :"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name", "telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAt tr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNN NNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup ":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet" :"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue ":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville" :"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL B IENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N ","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG" ,"date":"1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom ":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G" ,"attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONN NNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla", "faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority" :40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE"," codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"form attedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","relev e":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"} },{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"010203 0405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":" 1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN N","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641," ciPckupDesc":"NOISY LE GRAND"},"c'
method 'POST'
version 'HTTP/1.1'
je suis ici 22.1
je passe en 00 ii '1'
je suis ici 22
url '/interface1/course'
strlen(upload_data) '4582'
'2' upload_data 'iPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixbl abla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","pri ority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVE NUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686 ,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP", "releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":" ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":" 0102030405","passager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrT axi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone" :641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","commen t":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52", "clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue": "ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":61 5122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"ab onne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name ":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13" ,"telephoneAppelant":"0102030405","passager":{"nom":"Mr Passenger Name","telepho ne":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"}," zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","c iNbrInGrp":"1","comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","ac countTypeNumber":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suf fixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE , NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","preve nirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"status":"NONASSIG","date": "1706","heure":"17h13","telephoneAppelant":"0102030405","passager":{"nom":"Mr Pa ssenger Name","telephone":"0607080900","nbrTaxi":"1"},"classeCourse":"G","attrib uts":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNN NNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupDesc":"NOISY LE GRAND"} ,"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Franprixblabla","faiscea u":"G","fleet":"A","accountTypeNumber":"52","clientType":"G7","priority":40,"adr esse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue":"BIENVENUE","codePost al":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby":2426686,"formattedAdd ress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code":"SVIGP","releve":"N"," prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptNumber":"ZARE"}},{"stat us":"NONASSIG","date":"1706","heure":"17h13","telephoneAppelant":"0102030405","p assager":{"nom":"Mr Passenger Name","telephone":"0607080900","nbrTaxi":"1"},"cla sseCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","ciDr vAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPckupZone":641,"ciPckupD esc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1","comment":"A coté Fr anprixblabla","faisceau":"G","fleet":"A","accountTypeNumber":"52","clientType":" G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","typeRue":"ALL","nomRue" :"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciLambx":615122,"ciLamby" :2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRAND"},"abonne":{"code": "SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":"X","name":"","receiptN umber":"ZARE"}},{"status":"NONASSIG","date":"1706","heure":"17h13","telephoneApp elant":"0102030405","passager":{"nom":"Mr Passenger Name","telephone":"060708090 0","nbrTaxi":"1"},"classeCourse":"G","attributs":{"ciVehAttr":"NNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNN","ciDrvAttr":"NONONNNNNNNNNNNNNNNNNNNNNNNNNNNN"},"zonage":{"ciPc kupZone":641,"ciPckupDesc":"NOISY LE GRAND"},"ciPosInGroup":"1","ciNbrInGrp":"1" ,"comment":"A coté Franprixblabla","faisceau":"G","fleet":"A","accountTypeNumbe r":"52","clientType":"G7","priority":40,"adresse":{"numRue":2,"suffixeRue":"","t ypeRue":"ALL","nomRue":"BIENVENUE","codePostal":"","ville":"NOISY LE GRAND","ciL ambx":615122,"ciLamby":2426686,"formattedAddress":"2 ALL BIENVENUE, NOISY LE GRA ND"},"abonne":{"code":"SVIGP","releve":"N","prevenirGR":"N","prevenirSurPlace":" X","name":"","receiptNumber":"ZARE"}}]}'
method 'POST'
version 'HTTP/1.1'
I want libmicrohttpd receive and read one single packet from my request. And my request can have 10000 characters.
Thanks for your help
[Prev in Thread] | Current Thread | [Next in Thread] |