Solved

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

Posted on 2011-09-18
8
163 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 40

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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
 
LVL 40

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

821 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