Solved

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

Posted on 2011-09-18
8
161 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
 
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
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…
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…

861 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

23 Experts available now in Live!

Get 1:1 Help Now