Hit tcp server with browser GET request Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Connecting to TCP Socket from browser using javascriptHow to control web page caching, across all browsers?JavaScript post request like a form submitWhat is the maximum length of a URL in different browsers?HTTP GET with request bodyNode.js on multi-core machinesHow to use java.net.URLConnection to fire and handle HTTP requestsWho is listening on a given TCP port on Mac OS X?How is an HTTP POST request made in node.js?Node.js Best Practice Exception HandlingHow are parameters sent in an HTTP POST request?
What initially awakened the Balrog?
In musical terms, what properties are varied by the human voice to produce different words / syllables?
What is a more techy Technical Writer job title that isn't cutesy or confusing?
Why is the change of basis formula counter-intuitive? [See details]
If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
After Sam didn't return home in the end, were he and Al still friends?
Is there public access to the Meteor Crater in Arizona?
Is there hard evidence that the grant peer review system performs significantly better than random?
How can a team of shapeshifters communicate?
I can't produce songs
Is multiple magic items in one inherently imbalanced?
A term for a woman complaining about things/begging in a cute/childish way
Caught masturbating at work
What does the writing on Poe's helmet say?
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
What does 丫 mean? 丫是什么意思?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Relating to the President and obstruction, were Mueller's conclusions preordained?
Can an iPhone 7 be made to function as a NFC Tag?
GDP with Intermediate Production
AppleTVs create a chatty alternate WiFi network
Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?
Why is std::move not [[nodiscard]] in C++20?
How to change the tick of the color bar legend to black
Hit tcp server with browser GET request
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Connecting to TCP Socket from browser using javascriptHow to control web page caching, across all browsers?JavaScript post request like a form submitWhat is the maximum length of a URL in different browsers?HTTP GET with request bodyNode.js on multi-core machinesHow to use java.net.URLConnection to fire and handle HTTP requestsWho is listening on a given TCP port on Mac OS X?How is an HTTP POST request made in node.js?Node.js Best Practice Exception HandlingHow are parameters sent in an HTTP POST request?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Say I have a tcp server using node.js net package:
const s = net.createServer(conn => );
s.listen(6969, '0.0.0.0', () =>
);
is there a way to hit the server using an HTTP GET request somehow? Perhaps there is a way for an http server to use the same port in the same process?
node.js http tcp
add a comment |
Say I have a tcp server using node.js net package:
const s = net.createServer(conn => );
s.listen(6969, '0.0.0.0', () =>
);
is there a way to hit the server using an HTTP GET request somehow? Perhaps there is a way for an http server to use the same port in the same process?
node.js http tcp
maybe you will find this useful : superuser.com/questions/907220/…
– Milan
Mar 9 at 1:51
yep this is also related: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
I don't understand, isn't this just a plainGET http://<server_ip>:6969
request?
– shaochuancs
Mar 10 at 12:31
@shaochuancs this is tcp not http
– Alexander Mills
Mar 10 at 18:38
add a comment |
Say I have a tcp server using node.js net package:
const s = net.createServer(conn => );
s.listen(6969, '0.0.0.0', () =>
);
is there a way to hit the server using an HTTP GET request somehow? Perhaps there is a way for an http server to use the same port in the same process?
node.js http tcp
Say I have a tcp server using node.js net package:
const s = net.createServer(conn => );
s.listen(6969, '0.0.0.0', () =>
);
is there a way to hit the server using an HTTP GET request somehow? Perhaps there is a way for an http server to use the same port in the same process?
node.js http tcp
node.js http tcp
edited Mar 8 at 23:38
Alexander Mills
asked Mar 8 at 23:20
Alexander MillsAlexander Mills
20.6k35169355
20.6k35169355
maybe you will find this useful : superuser.com/questions/907220/…
– Milan
Mar 9 at 1:51
yep this is also related: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
I don't understand, isn't this just a plainGET http://<server_ip>:6969
request?
– shaochuancs
Mar 10 at 12:31
@shaochuancs this is tcp not http
– Alexander Mills
Mar 10 at 18:38
add a comment |
maybe you will find this useful : superuser.com/questions/907220/…
– Milan
Mar 9 at 1:51
yep this is also related: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
I don't understand, isn't this just a plainGET http://<server_ip>:6969
request?
– shaochuancs
Mar 10 at 12:31
@shaochuancs this is tcp not http
– Alexander Mills
Mar 10 at 18:38
maybe you will find this useful : superuser.com/questions/907220/…
– Milan
Mar 9 at 1:51
maybe you will find this useful : superuser.com/questions/907220/…
– Milan
Mar 9 at 1:51
yep this is also related: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
yep this is also related: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
I don't understand, isn't this just a plain
GET http://<server_ip>:6969
request?– shaochuancs
Mar 10 at 12:31
I don't understand, isn't this just a plain
GET http://<server_ip>:6969
request?– shaochuancs
Mar 10 at 12:31
@shaochuancs this is tcp not http
– Alexander Mills
Mar 10 at 18:38
@shaochuancs this is tcp not http
– Alexander Mills
Mar 10 at 18:38
add a comment |
1 Answer
1
active
oldest
votes
For HTTP connections use telnet to connect to the port - and send the HTTP commands
https://superuser.com/questions/933346/how-does-one-browse-a-website-using-telnet
For HTTPS connections use openssl s_client
https://www.feistyduck.com/library/openssl-cookbook/online/ch-testing-with-openssl.html
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072342%2fhit-tcp-server-with-browser-get-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
For HTTP connections use telnet to connect to the port - and send the HTTP commands
https://superuser.com/questions/933346/how-does-one-browse-a-website-using-telnet
For HTTPS connections use openssl s_client
https://www.feistyduck.com/library/openssl-cookbook/online/ch-testing-with-openssl.html
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
add a comment |
For HTTP connections use telnet to connect to the port - and send the HTTP commands
https://superuser.com/questions/933346/how-does-one-browse-a-website-using-telnet
For HTTPS connections use openssl s_client
https://www.feistyduck.com/library/openssl-cookbook/online/ch-testing-with-openssl.html
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
add a comment |
For HTTP connections use telnet to connect to the port - and send the HTTP commands
https://superuser.com/questions/933346/how-does-one-browse-a-website-using-telnet
For HTTPS connections use openssl s_client
https://www.feistyduck.com/library/openssl-cookbook/online/ch-testing-with-openssl.html
For HTTP connections use telnet to connect to the port - and send the HTTP commands
https://superuser.com/questions/933346/how-does-one-browse-a-website-using-telnet
For HTTPS connections use openssl s_client
https://www.feistyduck.com/library/openssl-cookbook/online/ch-testing-with-openssl.html
answered Mar 9 at 2:43
Chris HigginsChris Higgins
443
443
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
add a comment |
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
sure, but with a browser is there some magic trick to do this? Some way to make a tcp request with the browser?
– Alexander Mills
Mar 9 at 2:44
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
for example: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072342%2fhit-tcp-server-with-browser-get-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
maybe you will find this useful : superuser.com/questions/907220/…
– Milan
Mar 9 at 1:51
yep this is also related: stackoverflow.com/questions/12407778/…
– Alexander Mills
Mar 9 at 2:45
I don't understand, isn't this just a plain
GET http://<server_ip>:6969
request?– shaochuancs
Mar 10 at 12:31
@shaochuancs this is tcp not http
– Alexander Mills
Mar 10 at 18:38