Skip to main content
deleted 30 characters in body
Source Link

Let me preface this by saying that I'm a relative beginner when it comes to Linux, so please go easy. I'm using Ubuntu 20.04.

I have a site built with PHP-based website, and I'm trying to integrate it with someone else'sanother system. Their

This system sends data as XML data to a specific port (let's say port 9999). I canam able to capture those resultsthe incoming data and save it to a text file withusing netcat. However, but I need to be ablemy goal is to process thethis XML data using PHP and then send a response back to the other system. So I would like the data

Essentially, I want to receive fromdata on port 9999 toand then be sent to a URLsend it as POST data to a specific URL, possibly using cURL?.

CanI'm currently using Ubuntu 20.04.

Is it possible to achieve this be done? Oror am I takingapproaching it the wrong approachway? 

I welcomewould greatly appreciate any suggestions, thanks in advance or guidance.

Let me preface this by saying that I'm a relative beginner when it comes to Linux, so please go easy. I'm using Ubuntu 20.04.

I have a site built with PHP and I'm trying to integrate with someone else's system. Their system sends data as XML to a specific port (let's say port 9999). I can capture those results to a text file with netcat, but I need to be able to process the XML using PHP and then send a response back to the other system. So I would like the data I receive from port 9999 to then be sent to a URL as POST data, possibly using cURL?

Can this be done? Or am I taking the wrong approach? I welcome any suggestions, thanks in advance.

I have a PHP-based website, and I'm trying to integrate it with another system.

This system sends XML data to a specific port (let's say port 9999). I am able to capture the incoming data and save it to a text file using netcat. However, my goal is to process this XML data using PHP and then send a response back to the other system.

Essentially, I want to receive data on port 9999 and then send it as POST data to a specific URL, possibly using cURL.

I'm currently using Ubuntu 20.04.

Is it possible to achieve this or am I approaching it the wrong way? 

I would greatly appreciate any suggestions or guidance.

Source Link

Can I relay the data received from Netcat to a URL as a POST?

Let me preface this by saying that I'm a relative beginner when it comes to Linux, so please go easy. I'm using Ubuntu 20.04.

I have a site built with PHP and I'm trying to integrate with someone else's system. Their system sends data as XML to a specific port (let's say port 9999). I can capture those results to a text file with netcat, but I need to be able to process the XML using PHP and then send a response back to the other system. So I would like the data I receive from port 9999 to then be sent to a URL as POST data, possibly using cURL?

Can this be done? Or am I taking the wrong approach? I welcome any suggestions, thanks in advance.