Leser: 1
![]() |
![]() |
8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!c:/perl/bin/Perl.exe
use CGI::Carp "fatalsToBrowser";
use strict;
use LWP::UserAgent;
use HTTP::Request::Common;
my $ua = LWP::UserAgent->new();
my $resp = $ua->request(POST 'http://192.168.0.248/cfg.html',
Content_Type => 'form-data',
'SID' => 'xy00',
'id' => '56069145',
'file' => ["C:\Dokumente und Einstellungen\user\Desktop\myConfigFile.xml"]);
my $content = $resp->content;
print <<HTML;
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
$content
</body>
</html>
HTML
Quote500 Server closed connection without sending any data back
1
2
3
4
5
6
7
8
my $resp = $ua->request(
# ZUWEISEN
POST => 'http://192.168.0.248/cfg.html',
Content_Type => 'form-data',
'SID' => 'xy00',
'id' => '56069145',
'file' => ["C:\Dokumente und Einstellungen\user\Desktop\myConfigFile.xml"]
);
QuoteYou need a request object, not 'POST' at C:/Programme/Apache Group/Apache2/cgi-bin/post.pl
suliko,...Da kommt die Servermeldung:
You need a request object, not 'POST' at C:/Programme/Apache Group/Apache2/cgi-bin/post.pl
renee,...Wenn " benutzt werden, muss es aber "C:\\Dokumente ..." - also mit doppelten \ heißen!
![]() |
![]() |
8 Einträge, 1 Seite |