Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Help with add_part in HTTP::Message for making Batch HTTP requests for Google API

by Anonymous Monk
on Oct 05, 2018 at 20:44 UTC ( [id://1223595]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    ...
    content-length: 58
    
    { "url": "http://example.com/jobs/43", "type": "URL_DELETED" }
    
  2. or download this
    
    POST /v3/urlNotifications:publish [3]
    ...
    content-length: 58
    
    { "url": "http://example.com/jobs/43", "type": "URL_DELETED" }
    
  3. or download this
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    Content-ID: <b29c5de2-0db4-490b-b421-6a51b598bd22+3>
    
  4. or download this
    #!/usr/bin/env perl
    use strictures;
    ...
    $base_request->add_part( $request1, $request2 );
    
    print $base_request->as_string;
    
  5. or download this
    Authorization: Bearer TOKEN
    Content-Length: 0
    ...
    
    {"url":"http://example.com/2","type":"URL_UPDATED"}
    --xYzZY123-
    
  6. or download this
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    Content-ID: <b29c5de2-0db4-490b-b421-6a51b598bd22+2>
    
  7. or download this
    POST /batch HTTP/1.1
    Host: indexing.googleapis.com
    ...
    
    { "url": "http://example.com/jobs/43", "type": "URL_DELETED" }
    --===============7330845974216740156==
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1223595]
Approved by stevieb
Front-paged by vroom
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-19 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found