kgougakis
06-14-2005, 01:32 PM
i am noob with this thing.
i want to know how to connect with an epp server i don’t have any experience with xml and I cant understand how to send values to this server I ll give you an example of login sample please need more info
thank you
server url devepp..example..xxx:700/epp/proxy
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<command>
<login>
<clID>xxxx-xxxxx</clID>
<pw>xxxxx</pw>
<options>
<version>1.0</version>
<lang>en</lang>
</options>
<svcs>
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
</svcs>
</login>
<clTRID>ABC:xxx-xxxx:000000000000000</clTRID>
</command>
</epp>
taheri6
06-15-2005, 02:32 AM
Are you doing this in a browser address (type in), or a web page?
My guess would be a web page, and then it would be a simple form post - ie
clID=$clID&command=$command&lang=en&objURI=$objURI¶m=$param etc and then do a cURL post to the URL/port pairing.
Unless I'm way off from what you mean.
kgougakis
06-15-2005, 04:13 AM
thank you for the reply
the data will be in web page in my domain
and if i can use the variables like you said its ok!
something else what do you mean saying Curl i don’t know what is this? can you explain please
thank you
taheri6
06-15-2005, 09:40 AM
Sorry, cURL is used on linux servers - I assumed you would be using a linux/php combo. You dont have to do that, you can use a asp access object as well.
If using linux/php you could even use fsock to send the data, or you could even do a html post. Html posts are a little harder becuase you dont have the ability to parse the response on your pages and possibly log anything - but they do work :)
kgougakis
06-15-2005, 11:06 AM
can you give me an example of fsock data send
taheri6
06-15-2005, 01:10 PM
Sure;
<?php
$PostVars = "clID=$clID&command=$command&lang=en&objURI=$objURI¶m=$param";
$host = 'devepp..example..xxx';
$port = '777';
$socket = fsockopen($host,$port);
if ( !$socket ) {
echo "Could not connect to Server -Please try again Later";
} else {
// Send GET command with our parameters
$in = "GET /epp/proxy?" . $PostVars;
$out = '';
fputs($socket,$in);
// Read response
while ( $out=fread ($socket,2048) ) {
// Save in rawdata
$Response .= $out;
}
// Close the socket
fclose( $socket );
echo $response;
?>
Just a sample - dont gaurantee it to work, but it should get you on the right track at least.
dmaven
06-16-2005, 07:29 PM
what registrar are you trying to use? They should have some API you can use which is much easier.
jefius
07-07-2005, 07:28 AM
Hi,
Is there somebody that has a working epp solutions?
and would you share it with me or help me to create it my own ?
taheri6
07-07-2005, 09:31 AM
Jefius, you would need to be alot more specific to gain any assistance.
what registrar are you using
What command are you running
what are the parameters of the command
what is the post string and url to be posted to
and all that good stuff needs to be known well in advance. Just saying I need help with an EPP server is practically useless.
jefius
07-07-2005, 12:25 PM
I'm a registrar for the BE domain and I'm creating a EPP application for it.
I have knowledge of php but i'm not sure how to start with EPP.
I can mail you the example from the owner of the BE domain
Thnx