The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh root@mrp-gateway problems kittusri9 Shell Programming and Scripting 1 05-09-2008 12:21 AM
Basic questions on writing a Unix Service (newbie help!) Rutland Gizz High Level Programming 3 12-06-2006 06:48 PM
Problems writing bash script to unzip files siegfried Shell Programming and Scripting 1 09-18-2006 02:27 PM
newbie problems Gungho High Level Programming 0 07-24-2005 06:04 PM
help for newbie writing shell scripts richgi UNIX for Dummies Questions & Answers 2 04-27-2001 06:49 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2009
wrapster wrapster is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 193
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.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0