- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
How in Fortran to send or to receive file with URL?
Thanks!
Vladislav
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page