Hi, I am trying to link to barclaycard payment gateway using fsockopen (which works fine) but the server I am hosting my website on ([login to view URL]) require to use proxy to connect to any external server. They require to use curl for that. I am having trouble in using curl to make connection with payment gateway server. I want a coder who can make a connection to the server using curl. Please note you will not be doing full integration of payment gateway, all you are required to do is to make a simple connection with the payment gateway server and I will do the rest myself. Below is a coding used for fsockopen connetion. This uses cliient id and password as part of the $postdata. function pullpage( $host, $usepath, $postdata = "" ) { # open socket to filehandle(epdq encryption cgi) $fp = fsockopen( $host, 80, &$errno, &$errstr, 60 ); #check that the socket has been opened successfully if( !$fp ) { print "$errstr ($errno)
\n"; } else { #write the data to the encryption cgi fputs( $fp, "POST $usepath HTTP/1.0\n"); $strlength = strlen( $postdata ); fputs( $fp, "Content-type: application/x-www-form-urlencoded\n" ); fputs( $fp, "Content-length: ".$strlength."\n\n" ); fputs( $fp, $postdata."\n\n" ); #clear the response data $output = ""; #read the response from the remote cgi #while content exists, keep retrieving document in 1K chunks while( !feof( $fp ) ) { $output .= fgets( $fp, 1024); } #close the socket connection fclose( $fp); } return $output; } If you have any question then please ask. Thanks,
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):
a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
php,linux,curl