| View previous topic :: View next topic |
| Author |
Message |
kvazinet How do I cheat?
Reputation: 0
Joined: 07 Aug 2012 Posts: 7 Location: 127.0.0.1
|
Posted: Thu Aug 09, 2012 6:21 pm Post subject: C program - how to upload data to web? |
|
|
I have simple program which reads some stuff, and I want it to upload this data to web so I can access this data somewhere online or by using other program.
1. How to upload? (send)
2. Where to upload? FTP server, is it possible to make it free (no cost)
data isnt something big, maximum like 50 bytes (50 chars)
|
|
| Back to top |
|
 |
kvazinet How do I cheat?
Reputation: 0
Joined: 07 Aug 2012 Posts: 7 Location: 127.0.0.1
|
Posted: Fri Aug 10, 2012 4:50 am Post subject: |
|
|
I've read something and think is also possible to send mail in C# program. any help would be really welcome
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25813 Location: The netherlands
|
Posted: Fri Aug 10, 2012 8:42 am Post subject: |
|
|
you could execute the ftp.exe program in the windows system folder.
Just pass it the -s parameter followed by a filename with the ftp commands
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Aug 26, 2012 2:27 am Post subject: |
|
|
Just send the data to a backend script on your website that will handle POST data. This way you don't need to do any special stuff in your app aside from opening the link with the given POST variables appended to the url.
_________________
- Retired. |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sat Sep 01, 2012 10:56 am Post subject: |
|
|
| Wiccaan wrote: | | Just send the data to a backend script on your website that will handle POST data. This way you don't need to do any special stuff in your app aside from opening the link with the given POST variables appended to the url. |
Do you mean GET? POST Variables are placed into the header but not the URL, GET variables are placed into the URL.
All in all, I agree with what you're saying. I would take it a step further and think about creating a formalized REST API structure for future use. Zend is sexy for this stuff.
_________________
|
|
| Back to top |
|
 |
|