Hey, ich möchte folgendes Paket:
In eine _WinHttpSimpleRequest() packen, mein 'befehl dafür sah jetzt so aus:
$Paket ist hierbei die Variable für das Paket, nur geht dieser Befehl nicht.
Was mache ich falsch? Wie kann man das Paket korrekt einbinden?
Code:
http://website.de/unterseite POST /unterseite HTTP/1.1 Host: website.de User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Referer: http://website.de/unterseite Cookie: _pk_ref.25.75ae=%5B%22%22%2C%22%22%2C1396109937%2C%22http%3A%2F%2Fwww.bing.com%2Fsearch%3Fq%3D1jux%26pc%3Dconduit%26ptag%3DA3FC30AB4619B4474B0F%26form%3DCONBDF%26conlogo%3DCT3210127%22%5D; _pk_id.25.75ae=28bc4c2c1a7f9719.1388423609.22.1396109945.1396049226.; __utma=77573525.1016976029.1388423609.1391354035.1391783666.16;(undsoweiter...) Connection: keep-alive Content-Type: multipart/form-data; boundary=---------------------------einesehrlangezahl Content-Length: 1152 -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname[]" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname[]" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname" -----------------------------19468627913187 Content-Disposition: form-data; name="einname" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname" keinwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="einname" einwert -----------------------------einesehrlangezahl Content-Disposition: form-data; name="lang" einwert -----------------------------einesehrlangezahl-- HTTP/1.1 302 Found Server: nginx Date: Sun, 30 Mar 2014 17:59:56 GMT Content-Type: text/html Content-Length: 5023 Connection: keep-alive Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Location: http://website.de/unterordner/unterseite X-Powered-By: PleskLin Vary: Accept-Encoding Content-Encoding: gzip
Code:
$sHTML = _WinHTTPSimpleRequest($Connect,"POST","unterseite", "http://website.de/unterseite", $Paket)
Was mache ich falsch? Wie kann man das Paket korrekt einbinden?