How to send an HTTP message to a specific port in my local machine

Posted on 2011-09-18
Medium Priority
Last Modified: 2013-07-10

I am investigating a problem in which one of the processes in the machine get's some message which it does not recognizes.
I want to verify that this is actually the case by trying to reproduce it. Can you please advice:

How to send an HTTP message to a specific port in my local machine?

Question by:HPBSM
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
LVL 10

Expert Comment

ID: 36556459
When using a browser, you can use a colon after your hostname:

For low-level debugging, you can use telnet, too:
telnet localhost 8080
GET /path/to/file HTTP/1.1
Host: localhost

Open in new window

and 2x return
LVL 40

Expert Comment

ID: 36556489
You can use a browser:

use a url like http://thedevice:someport/

and use the right port number for the port you intend.

Author Comment

ID: 36556528
O.K. Thanks - it seems that I need to send a TCP packet and not using HTTP directly - what can be the best way to do that?
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 10

Expert Comment

ID: 36556681
As I said, using telnet with a different port is an option.
Linux has a tool called netcat, which can send data from a file to a network socket and display answer or save them to another file. This seems to be a windows port of it: http://www.securityfocus.com/tools/139
LVL 40

Assisted Solution

noci earned 300 total points
ID: 36556691
(lib)curl can be use for a lot of things,  for various protocol.
Otherwise you would have to build your own client (see: socket, bind, connect, read, write, close).  

Author Comment

ID: 36557179
I am using Win vista an Win 7 and it seems telnet is not working there. What can be done?
LVL 10

Accepted Solution

acbxyz earned 1200 total points
ID: 36557210
Since Vista telnet needs to be activated as feature.
In short: Start -> Control Panel -> Programs -> Turn Windows features on or off -> select telnet client

Author Comment

ID: 36587344
O.K. thanks I will check it out and write back.

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question