Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran ->URL, Fortran<-URL ?

Vladislav_Galkin
Beginner
1,540 Views

Hello,

How in Fortran to send or to receive file with URL?

Thanks!

Vladislav

 

0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,540 Views
Can you explain your question in more detail? The process of sending a file in a web browser is done by submitting an HTML form. Receiving a file is done with an HTML GET. I don't know if you can easily do either of these from Fortran code, but maybe if you tell us more about what you want to do we can help.
0 Kudos
Vladislav_Galkin
Beginner
1,540 Views
Now. Step 1. In the form (http://portal.tpu.ru/SHARED/v/VLG/eng) enter the data. For example gamma=1.4, M1=1, M2=2,G=1,K=50,Email=123@mail.com. Step 2. After press the button "Compute" (ОracleAS Portal10g) I receive the data by email. Step 3. On my PC (Win) I launch the program (exe file of FORTRAN program) with the data and I receive file of results. Step 4. File I emailed. Future. Step 1F. In the form enter the data. Step 2F. After press the button "Compute" on the application server (Win) the program (exe file) with the data is started and compute file of results. Step 3F. File emailed. The problem is Step 2F. Vladislav
0 Kudos
Steven_L_Intel1
Employee
1,540 Views
I would solve this by putting the file transfer in the HTML form. For upload, you need to use PHP code or something similar when the form is submitted to get the file data and store it in a local file. Then it should invoke the Fortran code locally (as an EXE works, with the file name as argument.) When the work finishes, the web page code then starts a file transfer to the user's web browser. I am away from the code I have that does the file transfer so I can't give you details, but a Google search on "html file upload' should get you started.
0 Kudos
Reply