Paulkirkewalker Posted May 6, 2007 Share Posted May 6, 2007 Hi there, I'm having some trouble understanding what I am supposed to do to implement the directions that I've pasted below. The directions are from a provider of a messaging service that we subscribe to. I've no problem with using GET or POST to send the required input fields to the server but when it comes to receiving the second list of parameters back, I'm lost. I created a form with the GET method and the url supplied by the service provider as the action. When I submit the userID and password parameters to the server with this form, my browser is offered a data file to download. I'm sure that this data is not intended to be downloaded in a file but is really meant to be interpreted by $_GET. My problem is that by using the GET method, the browser is directed to the action url, but in order to make use of the data sent back by the action url, i need to be browsing to a location where my php page can use GET to interpret this data. Do I need some way to submit the input parameters to the service provider's url but then direct the browser (and the returned data) to a php page that can use $_GET to interpret the output data? Sorry if this doesn't make much sense. I might be way off track with some of the concepts here. Thanks in advance, Paul. Here's what the service provider's manual has to say: You can poll the server for incoming messages: Clients can GET incoming messages from http://service.bulletinconnect.net/api/1/sms/in. Required Input parameters are: userId password You may pass these parameters to the server in a query string, or in the HTTP Authorization header in Basic format. The server will return a form encoded parameter list containing message information as described here: messageId Source MSISDN Destination MSISDN rateCode inReplyToId Correlation ID body N.B. The order of the parameters may change so use value/pair matching rather than location mapping. Quote Link to comment https://forums.phpfreaks.com/topic/50239-get-and-_get/ Share on other sites More sharing options...
trq Posted May 6, 2007 Share Posted May 6, 2007 Take a look at the curl extension. Quote Link to comment https://forums.phpfreaks.com/topic/50239-get-and-_get/#findComment-246586 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.