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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

717 Views
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 );

Labels (1)
0 Kudos
1 Reply

213 Views
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 Kudos