#include <mrpt/utils/core_defs.h>
#include <mrpt/utils/types_simple.h>
#include <mrpt/utils/TParameters.h>
Go to the source code of this file.
Namespaces | |
mrpt | |
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. | |
mrpt::comms | |
Serial and networking devices and utilities. | |
mrpt::comms::net | |
A set of useful routines for networking. | |
Enumerations | |
enum | mrpt::comms::net::ERRORCODE_HTTP { mrpt::comms::net::erOk = 0, mrpt::comms::net::erBadURL, mrpt::comms::net::erCouldntConnect, mrpt::comms::net::erNotFound, mrpt::comms::net::erOtherHTTPError } |
Possible returns from a HTTP request. More... | |
Functions | |
ERRORCODE_HTTP | mrpt::comms::net::http_get (const string &url, vector_byte &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=nullptr, mrpt::utils::TParameters< string > *extra_headers=nullptr, mrpt::utils::TParameters< string > *out_headers=nullptr, int timeout_ms=1000) |
Perform an HTTP GET operation (version for retrieving the data as a vector_byte) More... | |
ERRORCODE_HTTP | mrpt::comms::net::http_get (const string &url, string &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=nullptr, mrpt::utils::TParameters< string > *extra_headers=nullptr, mrpt::utils::TParameters< string > *out_headers=nullptr, int timeout_ms=1000) |
Perform an HTTP GET operation (version for retrieving the data as text) More... | |
ERRORCODE_HTTP | mrpt::comms::net::http_request (const string &http_method, const string &http_send_content, const string &url, vector_byte &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=nullptr, mrpt::utils::TParameters< string > *extra_headers=nullptr, mrpt::utils::TParameters< string > *out_headers=nullptr, int timeout_ms=1000) |
Generic function for HTTP GET & POST methods. More... | |
bool | mrpt::comms::net::DNS_resolve_async (const std::string &server_name, std::string &out_ip, const unsigned int timeout_ms=3000) |
Resolve a server address by its name, returning its IP address as a string - This method has a timeout for the maximum time to wait for the DNS server. More... | |
std::string | mrpt::comms::net::getLastSocketErrorStr () |
Returns a description of the last Sockets error. More... | |
bool | mrpt::comms::net::Ping (const std::string &address, const int &max_attempts, std::string *output_str=NULL) |
Ping an IP address. More... | |
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |