473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

HTTP GET/POST on remote machines

I need to perform HTTP Posts on a remote machine from a remote machine. Is this possible ?

Say for eg. I ssh into a Linux Box B from my script on Linux Box A and I need to do a HTTP GET/Post from B to say google.com

Is this possible?
Jun 5 '07 #1
7 1806
Motoma
3,237 Expert 2GB
I need to perform HTTP Posts on a remote machine from a remote machine. Is this possible ?

Say for eg. I ssh into a Linux Box B from my script on Linux Box A and I need to do a HTTP GET/Post from B to say google.com

Is this possible?
Yes, this is possible. There are a bunch of tools to do this, the curl program and associated libraries are a good place to start, but you could also build your own TCP connection with Python and send a POST to port 80.
Jun 6 '07 #2
but you could also build your own TCP connection with Python and send a POST to port 80.
In that case, it is going to do a POST from the PC which is running the script. I want to isolate the PC which is running the script, not to perform any such operation.

Anyways CURL seems to be interesting .. let me digg more into it.

Thanks,
Jun 8 '07 #3
Motoma
3,237 Expert 2GB
What it sounds like you are trying to do is set up a proxy. Let me know if this is the case.
Jun 8 '07 #4
I don't want to setup a Proxy. Ok, so here's the scenario, the PC which is running the script does not have a direct access to the destination where it needs to do the HTTP Post(coz it's on a different subnet which the script PC does not have route to). Rather it has access to a PC - say PC A which in turn has access to the destination where it can do the POST.

So, can PC that is running the script can SSH into PC-A and then perform a HTTP Post on the destination.


Thanks,
--V
Jun 8 '07 #5
Motoma
3,237 Expert 2GB
I don't want to setup a Proxy. Ok, so here's the scenario, the PC which is running the script does not have a direct access to the destination where it needs to do the HTTP Post(coz it's on a different subnet which the script PC does not have route to). Rather it has access to a PC - say PC A which in turn has access to the destination where it can do the POST.

So, can PC that is running the script can SSH into PC-A and then perform a HTTP Post on the destination.


Thanks,
--V
A proxy would work well for this. As would a VPN. Or a bridge.

But yes, you can do this. SSH in to the computer which is on the same subnet, then issue your curl command from that.
Jun 8 '07 #6
Yup , I can use proxy but I don't want to. Anyways, thanks a lot for the help, I guess CURL would do what I was looking for.

Thanks a bunch!!!!
Jun 8 '07 #7
Motoma
3,237 Expert 2GB
Yup , I can use proxy but I don't want to. Anyways, thanks a lot for the help, I guess CURL would do what I was looking for.

Thanks a bunch!!!!
Glad to help out. Come back any time.
Jun 10 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Shankar | last post by:
Platform: Windows 2000 machine with SP4 I use MSINFO to find system information on the remote machines on our local network. I am able to run MSINFO successfully on other Windows 2000 machines...
1
by: Gary K | last post by:
I am trying to setup remote debugging on my first client-server setup, so hopefully this problem is just stupidity on my part. The client machine is running Windows XP Pro/SP2 with Visual Studio...
4
by: Charlie363 | last post by:
Hi to all, I have a little asp.net website which works great on the local machine but I cannot seem to access it from a remote machine. It is not a connection problem because my remote machine...
6
by: KV | last post by:
Anybody here created an agent? I need to create an agent that runs as a Windows service. The agent would listen on a certain TCP port and run executable files sent to it from a master program. ...
0
by: matvdl | last post by:
My asp.net application depends on obtaining allot of data from a remote application. This application is a bit of a monster and it is not an option to install it on the asp.net system. Note - the...
0
by: Mr. Novice | last post by:
Hello, I'm using the below code to display a list of processes running on a remote machine. The code successfully grabs five or six of the processes before getting an error that says "feature is...
0
by: =?Utf-8?B?cGhpbC5k?= | last post by:
Hi, I've a need to use remote username and password credentials to access remote registry information via VB.net, can this be done? I've currently a vbs script that periodically accesses wmi...
1
by: ganeshp | last post by:
Hi All, One programming technique to connect from one system to other is through socket programming. Socket programming can be done using programming languages like Java,C,C++. Are there any...
11
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Has anybody worked with performancecounter object to access counters on remote machine? I managed to write code that retrieves counters categories froma remote machine, when I try another remote...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.