Skip to content

curl calls not working via browser or native node #4906

@barrystyle

Description

@barrystyle

Hi all,

Have been playing with some TCP sockets code using curl; tearing my hair out gradually.
While the code comes across and compiles correctly, the sockets fail each time.
There seem to be some mixed announcements; some saying that TCP calls don't work from browser, some saying that CONNECT etc works.

When I compile my code in C++, using either TCP or Websockets (with a redirect on the webserver itself from :8080 to intended TCP destination) it works correctly. However, every time i bring the code across via Emscripten; it doesnt work either in node.js or in Chrome/Firefox. Neither gives an error, the socket attempt is just never successful. In Nodejs, the code starts and doesnt emit any debugging information - nor is anything seen on the logger of the forwarder.

Any ideas/hints guys?
james

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions