Groups
Groups
Sign in
Groups
Groups
jsOAuth
Conversations
About
Send feedback
Help
Null value in data parm
10 views
Skip to first unread message
GG
unread,
Aug 30, 2012, 11:26:51 AM
8/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jso...@googlegroups.com
When making a request and
one of the data key/value pairs
is null, it shows up in the body the signature base string. Is that normal behavior?
Example:
the caption value is null and shows up in the body as caption=& but is no where to be found in the signature base string.
var options = {
method: 'POST',
url: '
http://endpoint.com
',
success: upload_success,
failure: upload_fail,
headerz: {
'Host': '
http://endpoint.com/
',
'Expect': ''
},
data: {
'data' : imageURI,
'caption' : caption,
'tags' : 'tags',
'state' : 'draft',
'type' : 'photo'
}
}
Rob Griffiths
unread,
Aug 30, 2012, 12:41:59 PM
8/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jso...@googlegroups.com
If I recall correctly, empty params should be excluded from the signature, but its highly likely they should also be excluded from the body.
Reply all
Reply to author
Forward
0 new messages