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,243件の閲覧回数
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 返信

739件の閲覧回数
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 件の賞賛
返信