1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-10-22 10:52:21 +03:00

Disabled proxy capability as it introduced a dependency on Ethernet, which meant that it didn't work properly with a WiFi shield

This commit is contained in:
amcewen
2012-08-13 17:07:57 +01:00
parent 44d790b8a6
commit c1405676f4
2 changed files with 15 additions and 2 deletions

View File

@@ -7,7 +7,6 @@
#include <Arduino.h>
#include <IPAddress.h>
#include "Ethernet.h"
#include "Client.h"
static const int HTTP_SUCCESS =0;
@@ -38,7 +37,11 @@ public:
// FIXME Write longer API request, using port and user-agent, example
// FIXME Update tempToPachube example to calculate Content-Length correctly
#ifdef PROXY_ENABLED // currently disabled as introduces dependency on Dns.h in Ethernet
HttpClient(Client& aClient, const char* aProxy =NULL, uint16_t aProxyPort =0);
#else
HttpClient(Client& aClient);
#endif
/** Start a more complex request.
Use this when you need to send additional headers in the request,