Solved

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

Posted on 2011-09-18
8
159 Views
Last Modified: 2013-07-10
Hi,

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?

Thanks!
0
Comment
Question by:HPBSM
  • 3
  • 3
  • 2
8 Comments
 
LVL 10

Expert Comment

by:acbxyz
ID: 36556459
When using a browser, you can use a colon after your hostname:
http://localhost:8080/path/to/file

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
0
 
LVL 39

Expert Comment

by:noci
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.
0
 

Author Comment

by:HPBSM
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?
0
 
LVL 10

Expert Comment

by:acbxyz
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
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 39

Assisted Solution

by:noci
noci earned 100 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).  
0
 

Author Comment

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

Accepted Solution

by:
acbxyz earned 400 total points
ID: 36557210
Since Vista telnet needs to be activated as feature.
http://windows.microsoft.com/en-US/windows-vista/Telnet-frequently-asked-questions#
In short: Start -> Control Panel -> Programs -> Turn Windows features on or off -> select telnet client
0
 

Author Comment

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

Featured Post

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

Introduction Many times we come across a slowness or instability between two hosts, and almost always we blame the poor networking guys, just because they're an easy target.  Sometimes we forget that other factors including disk bottlenecks, CPU …
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now