Skip to main content

Bug Tracker

Side navigation

#13690 closed bug (invalid)

Opened March 28, 2013 01:18PM UTC

Closed April 17, 2013 08:53AM UTC

getJSON work differently than get and post

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:


I work an app that use getJSON for get call and when I try to post data with $.post, there is a strange behavior.

All my getJSON pass the Access-Control check but not the post. And no cookie is added on the $.post request but it's working on the getJSON.

I don't know if it's a bug, but at least I expect getJSON was a shortcut to







but this is not working when getJSON works.

Attachments (0)
Change History (2)

Changed April 02, 2013 09:25PM UTC by m_gol comment:1

owner: → anonymous
status: newpending

According to docs, jQuery.getJSON is equivalent to:

  dataType: "json",
  url: url,
  data: data,
  success: success

dataType is json, not jsonp.

If you still think it's a bug, please provide a more concrete test case, your description is too general.

Changed April 17, 2013 08:53AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!