Networking Forums

Networking Forums > Computer Networking > Linux Networking > I'm begging for help: multipart/form-data request rejected by Apache

Reply
Thread Tools Display Modes

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

 
 
Piter
Guest
Posts: n/a

 
      03-29-2005, 06:29 PM
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....



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache request through shell Rocky3 Linux Networking 3 03-08-2007 03:00 AM
Another Openreach Begging Letter Pier Danone Broadband 19 10-16-2006 06:54 PM
Find out why ADSL rejected? db Broadband 4 12-01-2004 12:51 AM
multipart/form-data upload problem John Daglish Home Networking 0 10-07-2004 12:28 AM
log of rejected messages PiEmme Linux Networking 2 11-03-2003 11:08 PM



1 2 3 4 5 6 7 8 9 10 11