MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / MyGet

Function MyGet

src/urdb.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47#include "geotools.h"
48
49static wxString MyGet(const wxString &url)
50{
51 wxEasyCurl curl;
52// curl.AddHttpHeader( "Content-type: text/plain" );
53// curl.AddHttpHeader( "Cache-Control: no-cache" );
54// curl.AddHttpHeader( "Cache-Control: no-cache" );
55 curl.AddHttpHeader("Content-Type: application/json");
56 curl.AddHttpHeader("Accept: application/json");
57
58 curl.Get(url);
59 return curl.GetDataAsString();
60}
61
62
63wxString GetDate(const int &_time_t)

Callers 4

QueryUtilityCompaniesMethod · 0.85
QueryUtilityRatesMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected