Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN2675 Datasheet(PDF) 17 Page - STMicroelectronics

Part # AN2675
Description  STR91xFA in-application programming
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2675 Datasheet(HTML) 17 Page - STMicroelectronics

Back Button AN2675 Datasheet HTML 13Page - STMicroelectronics AN2675 Datasheet HTML 14Page - STMicroelectronics AN2675 Datasheet HTML 15Page - STMicroelectronics AN2675 Datasheet HTML 16Page - STMicroelectronics AN2675 Datasheet HTML 17Page - STMicroelectronics AN2675 Datasheet HTML 18Page - STMicroelectronics AN2675 Datasheet HTML 19Page - STMicroelectronics AN2675 Datasheet HTML 20Page - STMicroelectronics AN2675 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 24 page
background image
AN2675
IAP using HTTP
17/24
The HTML code to include in the web page in order to request a file from a user is as fol-
lows:
<FORM action="_URL_" METHOD=POST ENCTYPE="multipart/form-data">
<h2>Select a file to upload : </h2>
<INPUT type=”file”
name=”userfile”><BR><BR>
<INPUT type=”submit” value="Send File" name=”button”>
</FORM>
That will give the form below:
Figure 12.
Upload File Form
Selecting the “Browse” button would cause the browser to enter into a file selection mode
appropriate for the platform.
When the user completes the form, and selects the SUBMIT element, the browser should
send the form data and the content of the selected files.
3.4
IAP method
With this method, the file upload user interface uses an HTML form.
The client, in this case a PC that contains the binary file of the new firmware, must connect
to the STR912 board, which include an embedded Web server, and ask for the directory
containing the file to be uploaded.
The client first asks for the home page that contains a file upload form by sending a GET
Request. Then it submits the file to upload.
The communication between the HTTP server, in this case the IAP application, and the
HTTP client, a PC, is shown in Figure 13.
NO



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com