Sponsored Content
Top Forums Web Development Problems writing app that will communicate with gateway(newbie,last bit of project) Post 302340762 by wrapster on Tuesday 4th of August 2009 09:31:44 AM
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.
 

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
Net::DNS::RR::IPSECKEY(3)				User Contributed Perl Documentation				 Net::DNS::RR::IPSECKEY(3)

NAME
Net::DNS::RR::IPSECKEY - DNS IPSECKEY resource record SYNOPSIS
use Net::DNS; $rr = new Net::DNS::RR('name IPSECKEY precedence gatetype algorithm gateway key'); DESCRIPTION
DNS IPSEC Key Storage (IPSECKEY) resource records. METHODS
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package. Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour. precedence $precedence = $rr->precedence; This is an 8-bit precedence for this record. Gateways listed in IPSECKEY records with lower precedence are to be attempted first. gatetype $gatetype = $rr->gatetype; The gateway type field indicates the format of the information that is stored in the gateway field. algorithm $algorithm = $rr->algorithm; The algorithm type field identifies the public keys cryptographic algorithm and determines the format of the public key field. gateway $gateway = $rr->gateway; The gateway field indicates a gateway to which an IPsec tunnel may be created in order to reach the entity named by this resource record. key $key = $rr->key; Base64 representation of the optional public key block for the resource record. keybin $keybin = $rr->keybin; Binary representation of the public key block for the resource record. COPYRIGHT
Copyright (c)2007 Olaf Kolkman, NLnet Labs. Portions Copyright (c)2012 Dick Franks. Package template (c)2009,2012 O.M.Kolkman and R.W.Franks. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
perl, Net::DNS, Net::DNS::RR, RFC4025 perl v5.18.2 2014-01-16 Net::DNS::RR::IPSECKEY(3)
All times are GMT -4. The time now is 10:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy