- Timestamp:
- 2010-08-20T08:22:28Z (14 years ago)
- Branches:
- master
- Children:
- 801b90b
- Parents:
- 80175a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/soap.c
r80175a1 rf2520b5 68 68 69 69 static int msn_soap_send_request( struct msn_soap_req_data *req ); 70 static void msn_soap_debug_print( const char *headers, const char *payload ); 70 71 71 72 static int msn_soap_start( struct im_connection *ic, … … 107 108 strlen( soap_req->payload ), soap_req->payload ); 108 109 110 msn_soap_debug_print( http_req, soap_req->payload ); 111 109 112 soap_req->http_req = http_dorequest( url.host, url.port, url.proto == PROTO_HTTPS, 110 113 http_req, msn_soap_handle_response, soap_req ); … … 131 134 } 132 135 136 msn_soap_debug_print( http_req->reply_headers, http_req->reply_body ); 137 133 138 st = soap_req->handle_response( soap_req ); 134 139 … … 163 168 164 169 return ret; 170 } 171 172 static void msn_soap_debug_print( const char *headers, const char *payload ) 173 { 174 char *s; 175 176 if( !getenv( "BITLBEE_DEBUG" ) ) 177 return; 178 179 if( ( s = strstr( headers, "\r\n\r\n" ) ) ) 180 write( 1, s, s - headers + 4 ); 181 else 182 write( 1, headers, strlen( headers ) ); 183 184 #ifdef DEBUG 185 { 186 struct xt_node *xt = xt_from_string( payload ); 187 if( xt ) 188 xt_print( xt ); 189 xt_free_node( xt ); 190 } 191 #endif 165 192 } 166 193
Note: See TracChangeset
for help on using the changeset viewer.