1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-07-30 07:43:03 +03:00

39 Commits

Author SHA1 Message Date
1a3fb989a5 Make sure iContentLength doesn't wrap around due to malformed packets 2024-05-08 17:25:48 +02:00
0ec8824e58 Merge pull request #152 from tim-vandecasteele/tim-websocket-initialisation
Make sure to use HttpClient when upgrading the connection for websockets
2024-03-25 09:27:57 +01:00
9ddfad1977 Merge pull request #161 from kodav/Add-443-port-for-HTTPS-requests
Add 443 port for https requests
2024-03-22 12:37:53 +01:00
606a567ca4 Merge pull request #125 from carbotaniuman/patch-1
Reduce timeout from 1000ms to 100ms
2024-03-22 09:39:33 +01:00
9d6adef048 Merge pull request #90 from Park0/master
ContentLength can go over 2 byte int
2024-03-22 09:34:37 +01:00
397e6a1010 Merge pull request #124 from paclema/define_ws_tx_buffer_size
Added configurable WebSocket tx buffer size
2024-03-21 17:24:04 +01:00
5c5fafb4e8 Merge pull request #158 from AnCaPepe/AnCaPepe-custom-wait-delay
Add ability to set response wait time
2024-03-21 15:50:51 +01:00
9ea6ace0d0 moving http_parser from utility to utility/URLParser 2024-03-14 15:05:34 +01:00
482e088f93 added README for imported library 2024-03-14 14:42:40 +01:00
dbe65d631e added include preprocessor for boards compatibility 2024-03-13 10:50:27 +01:00
e5db3b5880 imported wrapper class for url parsing 2024-02-21 16:12:00 +01:00
6159db90b9 Removed functionalities not related to URL parsing from the imported library 2024-02-21 15:30:34 +01:00
cf741b0dbf Imported Url parser from src/http/ngx_http_parse.c from NGINX 2024-02-21 14:41:20 +01:00
ab3d0000f7 Update HttpClient.h 2023-11-02 16:55:21 +07:00
0a3e61acaf Update HttpClient.cpp
Add 443 port for HTTPS requests
2023-11-02 16:51:50 +07:00
c490dde1f1 Replace delay constant by variable 2023-08-04 22:35:09 -03:00
9b3987ca7f Add getter and setter functions 2023-08-04 22:33:13 -03:00
b93e3d2335 Add ability to set response wait time 2023-08-04 22:27:58 -03:00
8566fb4cc0 Make sure to use HttpClient when upgrading the connection for websockets
Using WebSocketClient::begin I got into problems where `status = responseStatusCode();` would be trying to read the HTTP header, but because both HttpClient and WebSocketClient have a read function, the read from WebSocketClient was used, which returns a bunch of gibberish. This caused the WebSocket to think that the connection was not successfully upgraded.
2023-04-09 18:34:47 +02:00
527967d010 Reduce timeout from 1000ms to 100ms
Using this with the Arduino `WiFiClient` makes simple requests really slow. Reduce the timeout in order to make it faster.
2022-03-01 08:07:10 -06:00
09c53095e3 Added configurabel WebSocket tx buffer size 2022-01-25 12:00:21 +01:00
e9897fc568 Correct typos in comments and documentation 2021-04-11 22:01:54 -07:00
9a5afdfc74 Fix -Wlogical-not-parentheses warning (#79)
* Fix -Wlogical-not-parentheses warning

The warning occurs because `operator!()` has higher precedence than `operator>()`.

Alternatively, we can use:
```
iClient->connect(iServerAddress, iServerPort) <= 0
```
2021-02-26 11:01:05 +01:00
0fac9f0033 ContentLength can go over 2 byte int
Converted int to long to allow for more then 65535 bytes in length
2020-06-28 11:53:31 +02:00
208dfec4cf ContentLength can go over 2 byte int
Converted int to long to allow for more then 65535 bytes in length
2020-06-28 11:52:27 +02:00
5f567031d5 Make encode method's static 2019-04-09 12:44:15 -04:00
d73940758a Add URL Encoder class 2019-04-09 12:44:15 -04:00
780546745d Fix incorrect return value, resulting in compilation error
Error in question:

ArduinoHttpClient/src/HttpClient.h: In member function 'virtual void HttpClient::flush()':
ArduinoHttpClient/src/HttpClient.h:310:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
2019-01-02 08:45:24 -05:00
1f81c4e8aa HttpClient: fix sendHeader docstring 2018-09-12 15:05:04 -04:00
cfe046dcb3 Increase WebSocket sec key length to 24 characters 2017-05-02 13:18:16 -04:00
765f2db637 Merge pull request #21 from sandeepmistry/chunked-response-body-support
Add support for chunked response bodies
2017-04-13 17:09:57 +02:00
fdedff59b8 Rename isChunked to isResponseChunked 2017-04-13 09:33:01 -04:00
448a1520c8 Add new beginBody API 2017-03-28 14:12:20 -04:00
2a9c01c210 Change read() to always check available() if response is chunked 2017-03-25 09:40:52 -04:00
522cf5d11a Add support for chunked response bodies 2017-03-23 14:42:34 -04:00
d261fa35f5 Add support for PATCH operations 2017-01-03 16:20:03 -05:00
172049e0c3 Also set iBodyLengthConsumed to zero when parsing 2016-08-12 17:00:56 -04:00
fe46191445 Make HttpClient::responseBody more robust
Return invalidated String if memory allocation fails or content length
does not match body data length. Also, use timed reads to support
responses without a content length.
2016-07-12 17:23:48 -04:00
364364744e Create src folder 2016-07-05 09:32:13 -04:00