increased maximums size of a http request from 256 to 1024 in order to allow

insanly long urls
parent e2da42f9
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* http.c: HTTP access plug-in * http.c: HTTP access plug-in
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: http.c,v 1.12 2002/11/28 15:18:27 sigmunau Exp $ * $Id: http.c,v 1.13 2002/11/28 18:16:02 sigmunau Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -106,7 +106,7 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) ...@@ -106,7 +106,7 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell )
{ {
_input_socket_t * p_access_data; _input_socket_t * p_access_data;
module_t * p_network; module_t * p_network;
char psz_buffer[256]; char psz_buffer[1024];
byte_t * psz_parser; byte_t * psz_parser;
int i_pos, i_returncode, i, i_size; int i_pos, i_returncode, i, i_size;
char * psz_return_alpha; char * psz_return_alpha;
...@@ -145,7 +145,7 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) ...@@ -145,7 +145,7 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell )
p_access_data->psz_buffer ); p_access_data->psz_buffer );
} }
psz_buffer[sizeof(psz_buffer) - 1] = '\0'; psz_buffer[sizeof(psz_buffer) - 1] = '\0';
printf(psz_buffer);
/* Send GET ... */ /* Send GET ... */
if( send( p_access_data->_socket.i_handle, psz_buffer, if( send( p_access_data->_socket.i_handle, psz_buffer,
strlen( psz_buffer ), 0 ) == (-1) ) strlen( psz_buffer ), 0 ) == (-1) )
...@@ -281,8 +281,8 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) ...@@ -281,8 +281,8 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell )
psz_parser++; psz_parser++;
} }
psz_header_value = psz_parser; psz_header_value = psz_parser;
msg_Dbg( p_input, "found header \"%s: %s\"", /* msg_Dbg( p_input, "found header \"%s: %s\"",
psz_header_name, psz_header_value ); psz_header_name, psz_header_value );*/
if( !strcasecmp( psz_header_name, "Content-Length" ) ) if( !strcasecmp( psz_header_name, "Content-Length" ) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment