Solved

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

Posted on 2011-09-18
8
164 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
[X]
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
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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internet Speed Test 5 147
network timeout on mapped drive 3 86
Looking for a program called HoneyMine. 3 117
URL to download Server 2016 Datacenter 1 76
Managing 24/7 IT Operations is a hands-on job and indeed a difficult one. Over the years I have found some simple tips and techniques to increase the efficiency of the overall operations. The core concept has always been on continuous improvement; a…
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…
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…

738 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