Visit Our UNIX and Linux User Community


Problems writing app that will communicate with gateway(newbie,last bit of project)


 
Thread Tools Search this Thread
Top Forums Web Development Problems writing app that will communicate with gateway(newbie,last bit of project)
# 1  
Old 08-04-2009
Problems writing app that will communicate with gateway(newbie,last bit of project)

Hi all,

Im writing an app that will contact a specified gateway and retrieve info onto our server and perform manipulations on it then return the result back to the gateway for further operations...

But I'm a newbie and dont have much of an experience in network programming...
Would like to know what are the paramaters necessary to contact the gateway...(I've got permission to use a gateway from a certain provider.)

Could anyone please help me...(This is the last bit in my project , that im not too familiar with)
The protocol is probably going to be HTTPS...
We have a choice to choose between that and HTTP... working out the logistics as of now..

This is however the overview...
The gateway will be pushing text to our server, we maintain a DB to do the manipulations on the incoming data.
Process depending on our needs and then push the result back to the gateway which will then take it forward.

I'll be using Java ...
The gateway that will send the data to us will be in the form of an url, this will be processed by our server(Which will act as a client since the gateway now acts as server).
So should i be looking at writing a HTTP client app or servlets, because regular socket programming ,Im assuming will only be used for RAW TCP/IP packets..

Assume that the data is sent like this from the gateway to me.

http://some.domain.com/path?source=1...xyz&passwd=123

In this case all I need to do is to verify if the uname/passwd is valid or not and send a response back to the gateway(It will take if forward from there).
(i.e, I do a GET the url and then extract the query string that contains the necessary data.
Then I process the data with a DB that I have to check of certain things in the extracted data.
Then I POST the response from my server back to the gateway).

I dont have a Submit button or anything like that at all, so how am I going to use the POST method(to the gateway) if that be the case?(want to know what will be the argument to be passed to the POST so that it will take the data to the gateway)

The reason Im asking is so far I had only dealt with the POST method in the conventional way ...
This is new.

Could anyone help me out.

I'll be glad to help you out with more,if need be...
This is the last bit of my project and taking too much of time to resolve.
please help.

Previous Thread | Next Thread
Test Your Knowledge in Computers #441
Difficulty: Easy
"Hotel California" by the Eagles is a song about a super A.I. who goes rouge and parties all day and night.
True or False?

6 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. AIX

32 bit app on aix 6.1

We have our in house developed software running on AIX 6.1 (6100-06-06-1140). The application is a 32 bit application and the operating system is 64 bit. We are running this application without any issue on AIX 5.3 32-bit on P5. We are facing issue with this application after moving on P7 with aix... (4 Replies)
Discussion started by: vjm
4 Replies

3. Shell Programming and Scripting

awk, shell script reverse engineering app generator - project

Hi, this is fantastic forum for shell programming and scripting, so please let me to introduce you with my very old concept to have web form/s with radio, select, input fields and have an application generating valid, syntax error free scripting code. The same or alike questions are asked... (2 Replies)
Discussion started by: darius2
2 Replies

4. UNIX for Dummies Questions & Answers

simple app to communicate windows and linux/unix

Careful!!! This is a newbie question! Hello Community I'd like to develop a very simple application, on the one side (some windows pcs with a listener and sender) on the other side a linux server that does the same. Any suggestions about doing that? telnet, smbclient????? It must be... (3 Replies)
Discussion started by: ncatdesigner
3 Replies

5. AIX

Compiling 32 bit app on 64 bit kernal

I've been trying to compile an application that works on AIX 5L in 32 bit mode on an AIX 5L 64 bit mode machine. In doing so I get a lot of undefined symbol errors. Below is a sample of what the output looks like..... %make -f makefile_hl7 all cc... (3 Replies)
Discussion started by: morrisey
3 Replies

6. Programming

Writing both 8-bit and 16-bit data to a file

I'm writing both 8-bit and wide 16-bit data to the screen and an output file. I have no problems with writing out to the screen - for example: cout<<8-bit data; wcout<<16-bit data; Similarly, I have used ofstream for 8-bit and wofstream for 16-bit, for example: ofstream out; wofstream wout;... (1 Reply)
Discussion started by: Breen
1 Replies

Featured Tech Videos