(self, target_key, payload)
Return an array [url, data]
        for GET targets payloads are hard coded in url
        for POST targets payloads are added to data
Return an array [url, data]
        for GET targets payloads are hard coded in url
        for POST targets payloads are added to data
Return an array [ url data ] for GET targets payloads are hard coded in url for POST targets payloads are added to data
def getPayloadedUrl(self, target_key, payload):
        """
        Return an array [url, data]
        for GET targets payloads are hard coded in url
        for POST targets payloads are added to data
        """
        new_params = self.params.copy()
        for k, v in new_params.iteritems():
            if k == target_key:
                del new_params[k]
                new_params[k] = v[0] + payload
        encoded_params = urlencode(new_params)
        
        # Target is POST
        if self.method  == "POST":
            return [self.getAbsoluteUrl(), encoded_params]
        else:
            # Target is GET
            return [self.getAbsoluteUrl() + "?" + encoded_params, None]
def getPayloadedUrl ( self , target_key , payload ) : new_params = self . params . copy ( ) for k , v in new_params . iteritems ( ) : if k == target_key : del new_params [ k ] new_params [ k ] = v [ 0 ] + payload encoded_params = urlencode ( new_params ) # Target is POST if self . method == "POST" : return [ self . getAbsoluteUrl ( ) , encoded_params ] else : # Target is GET return [ self . getAbsoluteUrl ( ) + "?" + encoded_params , None ]