|
|
9ccdfb |
--- ./esc/src/lib/NssHttpClient/httpClientNss.cpp.fix7 2009-06-22 13:00:20.000000000 -0700
|
|
|
9ccdfb |
+++ ./esc/src/lib/NssHttpClient/httpClientNss.cpp 2009-06-22 13:05:07.000000000 -0700
|
|
|
9ccdfb |
@@ -64,8 +64,53 @@
|
|
|
9ccdfb |
|
|
|
9ccdfb |
PSHttpResponse *HttpClientNss::httpSendChunked(char *host_port, char *uri, char *method, char *body,PSChunkedResponseCallback cb,void *uw,PRBool doSSL,int messageTimeout )
|
|
|
9ccdfb |
{
|
|
|
9ccdfb |
-
|
|
|
9ccdfb |
- PSHttpServer server(host_port, PR_AF_INET);
|
|
|
9ccdfb |
+ char *pPort = NULL;
|
|
|
9ccdfb |
+ char *pPortActual = NULL;
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ char hostName[512];
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ /*
|
|
|
9ccdfb |
+ * Isolate the host name, account for IPV6 numeric addresses.
|
|
|
9ccdfb |
+ *
|
|
|
9ccdfb |
+ */
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ if(host_port)
|
|
|
9ccdfb |
+ strncpy(hostName,host_port,512);
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ pPort = hostName;
|
|
|
9ccdfb |
+ while(1) {
|
|
|
9ccdfb |
+ pPort = strchr(pPort, ':');
|
|
|
9ccdfb |
+ if (pPort) {
|
|
|
9ccdfb |
+ pPortActual = pPort;
|
|
|
9ccdfb |
+ pPort++;
|
|
|
9ccdfb |
+ } else
|
|
|
9ccdfb |
+ break;
|
|
|
9ccdfb |
+ }
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ if(pPortActual)
|
|
|
9ccdfb |
+ *pPortActual = '\0';
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ /*
|
|
|
9ccdfb |
+ * Rifle through the values for the host
|
|
|
9ccdfb |
+ */
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ PRAddrInfo *ai;
|
|
|
9ccdfb |
+ void *iter;
|
|
|
9ccdfb |
+ PRNetAddr addr;
|
|
|
9ccdfb |
+ int family = PR_AF_INET;
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ ai = PR_GetAddrInfoByName(hostName, PR_AF_UNSPEC, PR_AI_ADDRCONFIG);
|
|
|
9ccdfb |
+ if (ai) {
|
|
|
9ccdfb |
+ printf("%s\n", PR_GetCanonNameFromAddrInfo(ai));
|
|
|
9ccdfb |
+ iter = NULL;
|
|
|
9ccdfb |
+ while ((iter = PR_EnumerateAddrInfo(iter, ai, 0, &addr)) != NULL) {
|
|
|
9ccdfb |
+ family = PR_NetAddrFamily(&addr);
|
|
|
9ccdfb |
+ break;
|
|
|
9ccdfb |
+ }
|
|
|
9ccdfb |
+ PR_FreeAddrInfo(ai);
|
|
|
9ccdfb |
+ }
|
|
|
9ccdfb |
+
|
|
|
9ccdfb |
+ PSHttpServer server(host_port, family);
|
|
|
9ccdfb |
|
|
|
9ccdfb |
PSHttpRequest request( &server, uri, HTTP11, 0 );
|
|
|
9ccdfb |
_request = &request;
|
|
|
9ccdfb |
--- ./esc/src/app/xul/esc/application.ini.fix7 2009-06-22 15:34:32.000000000 -0700
|
|
|
9ccdfb |
+++ ./esc/src/app/xul/esc/application.ini 2009-06-22 15:35:11.000000000 -0700
|
|
|
9ccdfb |
@@ -25,7 +25,7 @@
|
|
|
9ccdfb |
Name=ESC
|
|
|
9ccdfb |
;
|
|
|
9ccdfb |
; This field specifies your application's version. This field is optional.
|
|
|
9ccdfb |
-Version=1.1.0-7
|
|
|
9ccdfb |
+Version=1.1.0-9
|
|
|
9ccdfb |
;
|
|
|
9ccdfb |
; This field specifies your application's build ID (timestamp). This field is
|
|
|
9ccdfb |
; required.
|