• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

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

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
HPBSM
Asked:
HPBSM
  • 3
  • 3
  • 2
2 Solutions
 
acbxyzCommented:
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
 
nociSoftware EngineerCommented:
You can use a browser:

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

and use the right port number for the port you intend.
0
 
HPBSMAuthor Commented:
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
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

 
acbxyzCommented:
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
 
nociSoftware EngineerCommented:
(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
 
HPBSMAuthor Commented:
I am using Win vista an Win 7 and it seems telnet is not working there. What can be done?
0
 
acbxyzCommented:
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
 
HPBSMAuthor Commented:
O.K. thanks I will check it out and write back.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now