T
T
ThirteenAG2013-09-26 22:49:44
DLL
ThirteenAG, 2013-09-26 22:49:44

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

4 answer(s)
V
vScherba, 2013-09-26
@ThirteenAG

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

Parse the html response to get the link.

B
blackmaster, 2013-09-26
@blackmaster

As an option, build a DLL that uses the cURL library, or use cURL directly ( more details here ).

A
abby, 2013-09-26
@abby

You can use libcurl or play around with winapi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question