[Popcon-commits] cvs commit to popularity-contest by pere
pere at cvs.alioth.debian.org
pere at cvs.alioth.debian.org
Fri Jul 28 20:47:10 UTC 2006
Update of /cvsroot/popcon/popularity-contest
In directory haydn:/tmp/cvs-serv26833
Modified Files:
popcon-upload
Log Message:
Make sure HTTP headers use \r\n instead of \n as line ending, to avoid
confusing transparent Cisco proxies. Patch from Richard Burton.
(Closes: #379732)
Index: popcon-upload
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon-upload,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- popcon-upload 7 Apr 2006 13:42:59 -0000 1.6
+++ popcon-upload 28 Jul 2006 20:47:07 -0000 1.7
@@ -83,15 +83,13 @@
my $formlen = length($form);
#Send data
-print $remote <<"EOF";
-POST $submiturl HTTP/1.1
-User-Agent: popcon-upload
-Host: $host
-content-type: multipart/form-data; boundary=$boundary
-content-length: $formlen
-
-$form
-EOF
+print $remote "POST $submiturl HTTP/1.1\r\n";
+print $remote "User-Agent: popcon-upload\r\n";
+print $remote "Host: $host\r\n";
+print $remote "Content-Type: multipart/form-data; boundary=$boundary\r\n";
+print $remote "Content-Length: $formlen\r\n";
+print $remote "\r\n";
+print $remote "$form";
#Get answer
my($answer)="";
More information about the Popcon-commits
mailing list