Answer the question
In order to leave comments, you need to log in
Uploading a file to a site from a DLL
There is a site, http://gtasnp.com/ , a file with the extension .b (game save), which is successfully uploaded to this site through the browser, but I want to make it possible to upload the save directly from the game.
You can connect a dll to the game, which would do all this, but I don’t know how you can upload anything from the dll to this site.
The question is how to upload a file from a dll using a form on the site and get a link to it after?
Answer the question
In order to leave comments, you need to log in
You just need to organize a POST request with the contents of the file to gtasnp.com//upload . It can be implemented by any HTTP-enabled library. The simplest under Windows without unnecessary dependencies is WinInet Api. Here you can see the article with the source: www.rsdn.ru/article/inet/wininet.xml
and get a link to it after
As an option, build a DLL that uses the cURL library, or use cURL directly ( more details here ).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question