Add a new "Request Method" parameter to ajax

Bugs will be moved here once resolved.

Post » Thu May 08, 2014 9:36 pm

Problem Description
to communicate with my Apache CouchDB server from construct 2 i changed: :

C:\Program Files\Construct 2\exporters\html5\plugins\ajax\runtime.js line 210 to:
Code: Select all
         if (method_ === "PUT" && data_)


and

C:\Program Files\Construct 2\exporters\html5\plugins\ajax\runtime.js line 278 to:
Code: Select all
      this.doRequest(tag_, url_, "PUT", data_);


Steps to Reproduce Bug
  • Start Apache CouchDB
  • change configuration to enable cross-origin resource sharing:

    server config.png

  • Open the attached project and try to create a new db.
repro.capx


Observed Result
The Ajax object headers are sent with Request Method = POST and no way to change it to PUT , DELETE , HEAD or COPY....

Expected Result
allow header Request Method customization in Post to Url Action.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Microsoft Windows 7 SP 1 x64 French

Construct 2 Version ID
Stable Release 168 (64-bit) Free edition
You do not have the required permissions to view the files attached to this post.
B
8
S
2
Posts: 5
Reputation: 515

Post » Fri May 09, 2014 11:55 am

More of a feature request than a bug report, but added for the next build.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests