I'm begging for help: multipart/form-data request rejected by Apache

From: Piter (pit446_at_poczta.onet.pl)
Date: 03/29/05


Date: Tue, 29 Mar 2005 20:29:26 +0200

I have a problem which is driving me mad because I seem to be doing
everything
like I should and yet I'm getting and error message.

I wrote an application which sends an HTTP request to the server. This is a
POST
request and I cite it at the end of this message. In my opinion it is fully
compatible with the multipart/form-data content type specification. But my
server rejects it and return a 400 Bad Request error. Why? Do you have any
idea?

POST /test.php HTTP/1.1
User-Agent: UNTRUSTED/1.0
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: multipart/form-data; boundary=--boundary---
Content-Length: 9658
Host: www.myserver.com
Transfer-Encoding: chunked

000000 39 61 34 0D 0A 2D 2D 62 6F 75 6E 64 61 72 79 2D 9a4..--boundary-
000010 2D 2D 0D 0A 43 6F 6E 74 65 6E 74 2D 44 69 73 70 --..Content-Disp
000020 6F 73 69 74 69 6F 6E 3A 20 66 6F 72 6D 2D 64 61 osition: form-da
000030 74 61 3B 20 6E 61 6D 65 3D 22 44 61 6E 65 5A 64 ta; name="Custom
000040 6A 65 63 69 61 22 0D 0A 0D 0A 30 30 30 30 30 30 erDta"....000000
000050 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000

(...) - Here go another 2000 zeros which act as test values that should be
assigned to the CustomerDta variable.

000990 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
0009A0 30 30 30 30 30 30 30 30 30 0D 0A 39 61 34 0D 0A 000000000..9a4..
0009B0 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000

(...)

001330 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
001340 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
001350 30 30 30 30 0D 0A 39 61 34 0D 0A 30 30 30 30 30 0000..9a4..00000
001360 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000

(...)

0025B0 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000
0025C0 30 30 30 0D 0A 2D 2D 62 6F 75 6E 64 61 72 79 2D 000..--boundary-
0025D0 2D 2D 0D 0A 0D 0A 30 0D 0A 0D 0A --....0....



Relevant Pages

  • Im begging for help: multipart/form-data request rejected by server
    ... like I should and yet I'm getting and error message. ... I wrote an application which sends an HTTP request to the server. ... Accept-Language: en-us,en;q=0.5 ...
    (comp.os.linux.development.apps)
  • Re: .asp pages not showing output from asp code
    ... >The server has encountered an error while loading an application during the processing of your request. ... Please refer to the event log for more detail information. ... >The source code for the error message page relates to that message, ...
    (microsoft.public.inetserver.iis)
  • Re: error message - HELP!
    ... problem with how you are constructing your search string. ... much text to the server for the search engine to search 4. ... You should contact your search provider with your error message ... > Your browser sent a request that this server could not understand. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Server Application Unavailable
    ... Windows IP Configuration ... Ethernet adapter Server Local Area Connection: ... You receive a "server application unavailable" error message in the ... Error message when you request an ASP.NET 1.1 page: ...
    (microsoft.public.windows.server.sbs)
  • Re: Problems accessing a XML-file
    ... (ExtJS, i don't know how well known it is). ... following error message in FireBug. ... Your server rejects the POST request. ...
    (comp.lang.javascript)