Help for this page

Select Code to Download


  1. or download this
    data='';  data = json.dumps(data).encode('utf-8')
    headers = {'__atts' : ajax_atts,  '__ath' : ajax_ath,  '__atcrv' : aja
    +x_atcrv }      
    req = urllib.request.Request(url2)
    
  2. or download this
    my @data = (); my $json_data = encode_utf8(encode_json(\@data));
    my $ua = LWP::UserAgent->new;
    ...
    $request->header('__atcrv' => $ajax_atcrv);
    #$request->content($json_data);
    my $response = $ua->request($request);