Home
Developers

Developers

  • Documentation
    • Developer Guide
    • API Reference
    • Style Guide
    • How-To
    • Troubleshooting
  • Submit a Flake
  • Support

Pageflakes API Reference

  • Flake System Object
  • Flake User Object
  • Pageflakes Functions
  • Array Extensions
  • String Extensions
  • ContentProxy
    • HTTP GET Example
    • HTTP POST Example
    • ContentProxyResponse
    • GetUrl
    • GetUrl1
    • GetUrl2
    • GetUrl3
    • GetUrlNonCached
    • GetUrlNonCached2
    • FormPost
    • FormPost2
    • FormPost3
    • UploadString
    • UploadString2
  • App
  • RSS
  • Tooltip Manager
  • Public, Shared, and Private Pages
  • Server-Side Scripting
Home » Documentation » API Reference » ContentProxy

UploadString2

Method signature ContentProxy.UploadString2(url, headers,
requestData, succeededCallback, failedCallback)
Input Parameters url The URL of the target location.
  headers An array of headers used to create the request object

Each header object is a one-dimensional array with two elements. The first element is the name of the header and the second one is its value.

For example:

[ ["Content-Type","text/plain"], ["X-MyHeader","foo"] ]

  requestData Data to be POSTed
  succeededCallback The function that is invoked when the operation succeeds.
  failedCallback The function that is invoked if the operation fails.
Callback Parameter Content of HTTP response as string.
Note UploadString2 performs an HTTP POST operation.
‹ UploadStringupApp ›
»
  • Printer-friendly version