machinezone / IXWebSocket

websocket and http client and server library, with TLS support and very few dependencies
BSD 3-Clause "New" or "Revised" License
539 stars 173 forks source link

Can I use IXHttpClient to upload files to server? #480

Open kkseven opened 1 year ago

kkseven commented 1 year ago

Hi, I'm new in IXWebSocket.

Our project needs to use websocket and http client. IXWebSocket works fine, in addition, we need to upload some files to server using IXHttpClient.

I can download files from server by setting args->onChunkCallback, and then it will be callback while receiving file datas.

But I could't find any methods or settings to upload a file.

Did I missing something?

bsergean commented 1 year ago

Yes you can, usually you need to set the POST or PUT HTTP method to upload data.