Hello
Is there an equivalent for the following java code in php:

URI uri = URIUtils.createURI("http", serveur, -1, makeCall, URLEncodedUtils.format(qparams, "UTF-8"), null);

Cheers...

Member Avatar

diafol

Ok, so we're dealing with this:

public static URI createURI(String scheme,
                   String host,
                   int port,
                   String path,
                   String query,
                   String fragment)

Are we to assume that serveur and makeCall are variables?
Try this: http://php.net/manual/en/function.http-build-url.php

hello diafol, will give the link a try.
"serveur", "makeCall" and "qparams" are indeed the variables which need to be used in the url