This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What is the limit of POST command

Hi,

I am doing some feasibility analysis.

I have to send some data from SD card or Flash memory to some server using POST command.

How many characters can be sent via POST command? Is there any limit of how much payload can be sent via TCP/IP in LWIP?

In enet_weather example MAX_REQUEST macro limits from Code side.

So if I am trying to send more data on low speed network will it be taken care by TCP? I am planning to send data packets of around 100 KBytes on 64kbps network speed. What are other alternative to send this much payload?

Using CCS v6.1.0.00104, TivaWare_C_Series-2.1.1.71, lwip_v1.4.1 on windows 8 64 bit machine. 

Thanks,
Bhavesh

  • Hello Bhavesh,

    POST command does not have a length restriction. If it is file that is being sent then would not doing an FTP make more sense in the application?

    Regards
    Amit
  • Hi Amit,

    Thanks for suggestion and I will evaluate FTP for sending large data.
    Do we have any guidelines or examples to implement FTP? Will any RTOS (freeRTOS or TI-RTOS) for implementing FTP with SSL is necessary? Because FTP with SSL will require a bit of LwIP with Socket APIs to do transfer, while enet_weather and freeRTOS_demo examples which are given, uses LwIP with TCP APIs like tcp_send, tct_write, tcp_recv etc. using these APIs, there are difficulties for HTTPS and SSL implementation.
    Please correct me if I am missing something.

    Thanks,
    Bhavesh
  • Hello Bhavesh,

    FreeRTOS AFAIK, supports FTP. TI RTOS supports SSL but I am not sure on the licensing terms. You may want to check up on TI RTOS Forum.

    Regards
    Amit