Closed
Bug 16058
Opened 25 years ago
Closed 25 years ago
"Method not allowed" when POSTing
Categories
(Core :: Networking, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: baldbass, Assigned: gagan)
References
()
Details
"The reqested method POST is not allowed for the URL /index.html
Updated•25 years ago
|
Assignee: don → gagan
Component: Browser-General → Necko
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 1•25 years ago
|
||
I fixed this bug recently. You have to use recent builds to verify.
This is the code I added to nsFormFrame::OnSubmit - interestingly, there was a
difference in the way Necko's MakeAbsoluteURI worked versus the old netlib's
MakeAbsoluteURL. Fun stuff...
// Necko's MakeAbsoluteURI doesn't reuse the baseURL's rel path if it is
// passed a zero length rel path.
char* relPath = nsnull;
docURL->GetSpec(&relPath);
NS_ASSERTION(relPath, "Rel path couldn't be formed in form submit!\n");
if (relPath) {
href.Append(relPath);
nsCRT::free(relPath);
} else {
result = NS_ERROR_OUT_OF_MEMORY;
}
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•25 years ago
|
||
Posting verified working on 1999112908.
Bulk move of all Necko (to be deleted component) bugs to new Networking
component.
You need to log in
before you can comment on or make changes to this bug.
Description
•