Is TYPE_POST method doesn't work for CF LITE web server code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Is TYPE_POST method doesn't work for CF LITE web server code?

1,069 次查看
TVNAIDU
Contributor III

wrote small html code method type POST for 5223xDEMO board, but in web server code, TYPE_POST under 52259 code, any idea it doesn't work for 5223X?. freescale_http.c file shows below:

 


/FSL added TYPE_POST capability to allow upload of S19 S-Record via Web Browser
ifdef MCF52259                 //FSL devices ported too

       if( freescale_http_sessions[session].headertype == TYPE_POST )
       {
               if( !filename[0] )
               {
                       printf( "\nError with s-record file %s\n",filename );
                       freescale_http_sessions[session].state = EMG_HTTP_STATE_CLOSE;
                       return;
               }
               freescale_http_sessions[session].state          = EMG_HTTP_STATE_S19_UPLOAD_FILE;
       }
endif

       if( freescale_http_sessions[session].headertype == TYPE_GET )
       {
               collect_sensor_data( );

               if( filename[0] )
                       pre_process_filename( filename );

标签 (1)
0 项奖励
回复
1 回复

565 次查看
vier_kuifjes
Senior Contributor I
The TYPE_POST code shown here is only used for uploading S19 files to the 52259 cpu. If you want to use TYPE_POST for other applications, you'll have to write your own code to do so. But there's no reason why this wouldn't be possible on the 5223x cpu.
0 项奖励
回复