lwthiker / curl-impersonate

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox
MIT License
3.45k stars 229 forks source link

Websocket on Windows #208

Open Karvp opened 7 months ago

Karvp commented 7 months ago

Does curl-impersonate support websocket on Windows?

STRATZ-Ken commented 4 months ago

Would love to know if anyone got this to build on win. All the previous other githubs seem abandoned. Don't mind throw some bucks to someone.

yifeikong commented 4 months ago

Here, we have windows build for both amd64 and i686, with websocket and latest chrome versions.

STRATZ-Ken commented 4 months ago

This is excellent @yifeikong .

Is there anyway to send data through the websocket? I need to send 2 messages to "auth".

yifeikong commented 4 months ago

It's pretty standard curl stuff, see the docs for detailed explanation.

If you are using python, we have a dedicated binding for curl-impersonate.

STRATZ-Ken commented 4 months ago

I’m actually using C#. Using cmd to start the process then read the results. Is there anyway to do that?

On Feb 2, 2024, at 9:15 PM, Yifei Kong @.***> wrote:



It's pretty standard curl stuff, see the docshttps://everything.curl.dev/helpers/ws for detailed explanation.

If you are using python, we have a dedicated bindinghttps://github.com/yifeikong/curl_cffi/tree/main/examples/websockets for curl-impersonate.

— Reply to this email directly, view it on GitHubhttps://github.com/lwthiker/curl-impersonate/issues/208#issuecomment-1925022610, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF6S7HOGDUNLCYYRT7LJ5H3YRWMT7AVCNFSM6AAAAAA7MBU2KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGAZDENRRGA. You are receiving this because you commented.Message ID: @.***>

yifeikong commented 4 months ago

I'm not sure how to do it via calling the curl command, but you can definitely do this with a c# libcurl binding.