-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Can't upload file to VirusTotal #1162
Comments
did you compile httplib with openssl enabled? |
yep. it even worked with small file, but with big files it does not work |
If it works with a small file, I don't think it's a problem of cpp-httplib, but you simply hit a size limit on the service that you are using. Could you verify that? |
The second file has worked with the cURL library. |
@sccoouut, could you give me more detailed information about the 'second file'? |
@sccoouut, I am actually concerned with the size of the second file, not the type of it. Could you figure out the minimum size that can cause the problem, so that I could easily reproduce it on my machine. Could you also give more detail about the difference between the actual HTTP request data from cpp-httplib and the one from cURL? (You can get the info with Line 1030 in 65a8f4c
Thanks a lot! |
any response? |
Hi, I have been a little bit busy on the last week, I'll do it in few next days. |
Close it until further information is provided. |
When I try to install logger on my client, it's not being called. Am I doing something wrong?
|
Working example: #include <httplib.h>
#include <iostream>
int main(void) {
httplib::Client cli("https://httpbin.org");
cli.set_logger([](const httplib::Request &req, const httplib::Response &res) {
std::cout << req.body << std::endl;
std::cout << res.body << std::endl;
});
auto res = cli.Post("/post", "hello world!", "text/plain");
} Result:
|
There is a problem. If there is a connection failure, logger will not be called because Lines 6354 to 6435 in bb00a23
|
@PixlRainbow, thanks for the clarification. Yes, when a connection error happens, the logger won't be called, since the logger is HTTP level logger. @sccoouut, hope @PixlRainbow's comment helps you understand the situation. TCP/IP level error logger isn't available, yet. (#870) |
it also makes it impossible to identify what the difference is between httplib's request data and curl's request data that makes the virustotal request fail |
Hi, i'm using VirusTotal API in order to check is file malware, so I need to upload file. I tried to do it in that way, but it have not succeeded:
The error that I get is: "Write (5)"
I tried to do it also in another way and it have not worked too:
Although, I tried to use curl lib and it works great, there is a working code:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: