Re: Talking Back With HTTPS Server

From: Date: Tue, 12 Dec 2000 14:16:27 +0000
Subject: Re: Talking Back With HTTPS Server
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-29959@lists.php.net to get a copy of this message
Hehe, yea it is dumb, i guess they figure they'd have less security issues by eliminating GET. I tried tho. "declined","GET requests are not supported","12/12/00","16:10","0","","","" i'll look into curl. ----- Original Message ----- From: Joe Stump <joe@earth.care2.com> To: JB <jbeebe@aimsmarketing.com> Cc: <php-general@lists.php.net> Sent: Tuesday, December 12, 2000 9:07 PM Subject: Re: [PHP] Talking Back With HTTPS Server > If it doesn't accept get (which is DUMB IMO) then I think curl does posts to > pages in the background - but I've never used it. > > Usually it would be easy - just make your url from the form like this: > > $URL = 'http://www.server.com/test.html?cc='.$cc_number.'&firstname='.$firstname.'& lastname='.$lastname.'&zip='.$zip.'&etc='.$etc; > $returned_output_from_get = w3m-ssl -dump $URL; > > // do stuff to $returned_output_from_get > > I would at least TRY a GET .... > > --Joe > > On Tue, Dec 12, 2000 at 02:07:55PM -0000, JB wrote: > > ok... this is starting to sound right now. i'm a little confused on a couple > > things though. > > > > my <form> is going to have fields where the customer can input the cc number > > name etc... but the ibill server also requires my ibill account number and > > pw and a few other variables i don't want exposed in hidden fields. the > > ibill server also requires posts, it will fail and deny any get requests. > > > > so my theory is that i have to post the customer input data to a php script, > > which will then inturn add the other required variables and then post that > > to the ibill server. > > https://secure.ibill.com/cgi-win/ccard/tpcard.exe > > > > obviously posting the info to a php script is not a problem, but how to code > > the php script to then repost the data (with the extra variables) to another > > script? > > > > the ibill server responds by printing a string such as "declined","Invalid > > Card > > Number","12/12/00","15:53","0","ghds763276","","" > > > > $line = w3m-ssl -dump > > https://server.com/foo.php?value=1`; > > > > that piece of code seems like it will capture the string, but it is > > requesting via get, which will in turn fail. > > > > maybe i'm off here, any more ideas? > > > > btw- thanks for the input so far > > > > ----- Original Message ----- > > From: Joe Stump <joe@earth.care2.com> > > To: JB <jbeebe@aimsmarketing.com> > > Cc: <php-general@lists.php.net> > > Sent: Tuesday, December 12, 2000 8:35 PM > > Subject: Re: [PHP] Talking Back With HTTPS Server > > > > > > > Well I'm assuming you have figured out how to get encrypted data from the > > > server with php (there are a few ways to do that). > > > > > > So lets say the line looks like this: > > > > > > "authorized","444333","10/7/00","15:20" > > > > > > Which is comma deliminated and has "'s around it. > > > > > > // what you got from the server > > > $line = > > > '"authorized","444333","10/7/00","15:20"'; > > > $line = str_replace('"','',$line); > > > > > > $fields = explode(',',$line); > > > > > > while(list(,$value) = each($fields)) > > > { > > > echo $value.'<br>'; > > > } > > > > > > That hsould do it. If you need to get the data from the server unencrypted > > I > > > would do this $line = `w3m-ssl -dump https://server.com/foo.php?value=1; > > > > > > --Joe > > > > > > > > > > > > On Tue, Dec 12, 2000 at 11:50:20AM -0000, JB wrote: > > > > Hey, > > > > > > > > I working on an e-commerce project in which we are using iBill for real > > time credit card processing. I know how to talk to the iBill server, it is > > accomplished by using SSL to send form data (name="amount" value="35.50"). > > Once the info is sent posted to iBills processing script > > (https://secure.ibill.com/cgi-win/ccard/tpcard.exe) the server then > > respondes with something like > > "authorized","444333","10/7/00","15:20", and > > so on and so forth. It basically responds with the either authorized or > > declined and information regarding the transaction. Each piece of > > information is surrounded in double-quotes and is seperated by a coma. > > > > > > > > So, how do I get PHP to take the information iBill sends back and do > > something with it? I guess the main thing I'm unclear about is how to > > receive the data iBill returns, and how to split up the string into seperate > > variables so I can use it. > > > > > > > > Thanks a bunch. > > > > > > --- > > > Joe Stump > > > PHP Programmer > > > www.Care2.com > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > --- > Joe Stump > PHP Programmer > www.Care2.com > >

« previous php.general (#29959) next »