QueryString in POST

From: Date: Sun, 09 Jun 2002 04:51:10 +0000
Subject: QueryString in POST
Groups: php.soap 
Request: Send a blank email to php-soap+get-93@lists.php.net to get a copy of this message
Brad: I've made this extra-simple modification to allow sending a variable in the querystring. I've added the phpurl->query to the post. I needed this to tell the server which class (of many classes) do I want the SoapServer to be. Because I didnt find a way to catch the urn. I'm a newbie at PHP extension programming, I'll use phpsoap as communication protocol between the backend and frontend's for my project JFFNMS (jffnms.sf.net). Javier ext/soap/php_http.c: lines 64. char *header = "POST %s?%s HTTP/1.1\r\nConnection: close\r\nAccept: text/html; text/xml; text/plain\r\nUser-Agent: PHP SOAP 0.1\r\nHost: %s\r\nContent-Type: text/xml\r\nContent-Length: %d\r\nSOAPAction: \"%s\"\r\n"; int size = strlen(header) + strlen(phpurl->host) + strlen(phpurl->path) + strlen(phpurl->query) + 10; // TODO: Add authication if(sdl != NULL) { // TODO: need to grab soap action from wsdl.... soap_headers = emalloc(size + strlen(soapaction)); sprintf(soap_headers, header, phpurl->path, phpurl->query, phpurl->host, buf_size, soapaction); } else { soap_headers = emalloc(size + strlen(soapaction)); sprintf(soap_headers, header, phpurl->path, phpurl->query, phpurl->host, buf_size, soapaction); }

« previous php.soap (#93) next »