in reply to Can't connect to https using LWP::UserAgent
Your posted script works fine for me and I get apparently valid JSON in return.
$ perl lwp2.pl { "metadata" : { "limit" : 25, "offset" : 0, "count" : 432302, "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents.zip" } ] }, "results" : [ { "documentNumber" : "69", "filingDatetime" : "2014-03-26T14:20:37", "title" : "Patent Owner's Notice of Appeal", "lastModifiedDatetime" : "2014-03-26T14:20:37", "filingParty" : "patent_owner", "trialNumber" : "CBM2012-00002", "sizeInBytes" : 85960, "mediaType" : "application/pdf", "id" : 1, "type" : "notice of appeal", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/1" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/1/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +02" } ] }, { "documentNumber" : "83", "filingDatetime" : "2014-03-26T16:14:54", "title" : "Order - Conduct of the Proceeding", "lastModifiedDatetime" : "2014-03-26T16:14:54", "filingParty" : "board", "trialNumber" : "CBM2012-00003", "sizeInBytes" : 12536, "mediaType" : "application/pdf", "id" : 2, "type" : "notice", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/2" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/2/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +03" } ] }, { "documentNumber" : "85", "filingDatetime" : "2014-04-01T17:25", "title" : "Decision Request for Rehearing", "lastModifiedDatetime" : "2014-04-01T17:26:30", "filingParty" : "board", "trialNumber" : "CBM2012-00003", "sizeInBytes" : 96037, "mediaType" : "application/pdf", "id" : 3, "type" : "rehearing decision", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/3" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/3/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +03" } ] }, { "documentNumber" : "84", "filingDatetime" : "2014-03-28T21:54", "title" : "Patent Owner's Opposition to Paper No. 81", "lastModifiedDatetime" : "2014-03-28T21:54", "filingParty" : "patent_owner", "trialNumber" : "CBM2012-00003", "sizeInBytes" : 148147, "mediaType" : "application/pdf", "id" : 4, "type" : "opposition", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/4" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/4/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +03" } ] }, { "documentNumber" : "82", "filingDatetime" : "2014-03-26T14:08:45", "title" : "Transcript of 3-25-14 teleconference", "lastModifiedDatetime" : "2014-03-26T14:08:45", "filingParty" : "patent_owner", "trialNumber" : "CBM2012-00003", "sizeInBytes" : 102495, "mediaType" : "application/pdf", "id" : 5, "type" : "notice", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/5" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/5/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +03" } ] }, { "documentNumber" : "81", "filingDatetime" : "2014-03-13T17:58:14", "title" : "Petitioner's Request for Rehearing Seeking Conditional +Relief Pursuant to 37 C.F.R. Section 42.71", "lastModifiedDatetime" : "2014-03-13T17:58:15", "filingParty" : "petitioner", "trialNumber" : "CBM2012-00003", "sizeInBytes" : 79470, "mediaType" : "application/pdf", "id" : 6, "type" : "rehearing request", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/6" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/6/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +03" } ] }, { "documentNumber" : "64", "filingDatetime" : "2014-04-01T17:19", "title" : "Decision Request for Rehearing", "lastModifiedDatetime" : "2014-04-01T17:27:59", "filingParty" : "board", "trialNumber" : "CBM2012-00004", "sizeInBytes" : 168527, "mediaType" : "application/pdf", "id" : 7, "type" : "rehearing decision", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/7" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/7/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +04" } ] }, { "documentNumber" : "67", "filingDatetime" : "2014-03-24T16:38:39", "title" : "Patent Owner's Notice of Appeal", "lastModifiedDatetime" : "2014-03-24T16:38:39", "filingParty" : "patent_owner", "trialNumber" : "CBM2012-00005", "sizeInBytes" : 155727, "mediaType" : "application/pdf", "id" : 8, "type" : "notice of appeal", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/8" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/8/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +05" } ] }, { "documentNumber" : "60", "filingDatetime" : "2014-04-02T14:56:34", "title" : "Notice of Appeal to the Federal Circuit", "lastModifiedDatetime" : "2014-04-02T14:56:34", "filingParty" : "patent_owner", "trialNumber" : "CBM2012-00007", "sizeInBytes" : 136214, "mediaType" : "application/pdf", "id" : 9, "type" : "notice of appeal", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/9" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/9/native +" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2012-000 +07" } ] }, { "documentNumber" : "53", "filingDatetime" : "2014-03-13T08:53:10", "title" : "Final Written Decision", "lastModifiedDatetime" : "2014-03-13T08:53:11", "filingParty" : "board", "trialNumber" : "CBM2013-00004", "sizeInBytes" : 712622, "mediaType" : "application/pdf", "id" : 10, "type" : "final decision", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/10" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/10/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +04" } ] }, { "documentNumber" : "71", "filingDatetime" : "2014-03-26T14:12:12", "title" : "Final Written Decision", "lastModifiedDatetime" : "2014-03-26T14:12:12", "filingParty" : "board", "trialNumber" : "CBM2013-00005", "sizeInBytes" : 319534, "mediaType" : "application/pdf", "id" : 11, "type" : "final decision", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/11" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/11/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +05" } ] }, { "documentNumber" : "77", "filingDatetime" : "2014-03-28T21:55:50", "title" : "Patent Owner's Opposition to Paper No. 73", "lastModifiedDatetime" : "2014-03-28T21:55:50", "filingParty" : "patent_owner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 147903, "mediaType" : "application/pdf", "id" : 13, "type" : "opposition", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/13" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/13/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "72", "filingDatetime" : "2014-03-12T13:01:51", "title" : "Patent Owner's Updated Exhibit List", "lastModifiedDatetime" : "2014-03-12T13:01:51", "filingParty" : "patent_owner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 69439, "mediaType" : "application/pdf", "id" : 14, "type" : "notice", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/14" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/14/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "74", "filingDatetime" : "2014-03-26T14:10:48", "title" : "Transcript of 3-25-14 teleconference", "lastModifiedDatetime" : "2014-03-26T14:10:48", "filingParty" : "patent_owner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 102495, "mediaType" : "application/pdf", "id" : 15, "type" : "notice", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/15" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/15/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "75", "filingDatetime" : "2014-03-26T16:20:12", "title" : "Order - Conduct of the Proceeding", "lastModifiedDatetime" : "2014-03-26T16:20:13", "filingParty" : "board", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 12855, "mediaType" : "application/pdf", "id" : 16, "type" : "notice", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/16" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/16/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "71", "filingDatetime" : "2014-03-12T13:00:23", "title" : "Patent Owner's Request for Rehearing Pursuant to 37 CFR + 42.71", "lastModifiedDatetime" : "2014-03-12T13:00:23", "filingParty" : "patent_owner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 184648, "mediaType" : "application/pdf", "id" : 17, "type" : "rehearing request", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/17" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/17/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "73", "filingDatetime" : "2014-03-13T18:00:39", "title" : "Petitioner's Request For Rehearing Seeking Conditional +Relief Pursuant to 37 C.F.R. Section 42.71", "lastModifiedDatetime" : "2014-03-13T18:00:39", "filingParty" : "petitioner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 79195, "mediaType" : "application/pdf", "id" : 18, "type" : "rehearing request", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/18" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/18/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "76", "filingDatetime" : "2014-03-28T18:23:24", "title" : "Petitioner Opposition to Patent Owner's Request for Reh +earing", "lastModifiedDatetime" : "2014-03-28T18:23:24", "filingParty" : "petitioner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 86948, "mediaType" : "application/pdf", "id" : 20, "type" : "opposition", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/20" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/20/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "2036", "filingDatetime" : "2014-03-12T13:00:23", "title" : "Declaration of James L. Wamsley", "lastModifiedDatetime" : "2014-03-12T13:00:23", "filingParty" : "patent_owner", "trialNumber" : "CBM2013-00009", "sizeInBytes" : 507844, "mediaType" : "application/pdf", "id" : 21, "type" : "exhibit", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/21" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/21/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +09" } ] }, { "documentNumber" : "1011", "filingDatetime" : "2014-04-20T16:32:28", "title" : "Patent Owner's Corrected Response, IPR2013-00194", "lastModifiedDatetime" : "2014-04-20T16:32:29", "filingParty" : "petitioner", "trialNumber" : "CBM2013-00013", "sizeInBytes" : 255191, "mediaType" : "application/pdf", "id" : 22, "type" : "exhibit", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/22" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/22/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +13" } ] }, { "documentNumber" : "1012", "filingDatetime" : "2014-04-20T16:32:28", "title" : "Pi-Net v. JP Morgan, Joint Claim Construction Chart", "lastModifiedDatetime" : "2014-04-20T16:32:29", "filingParty" : "petitioner", "trialNumber" : "CBM2013-00013", "sizeInBytes" : 171820, "mediaType" : "application/pdf", "id" : 23, "type" : "exhibit", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/23" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/23/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +13" } ] }, { "documentNumber" : "41", "filingDatetime" : "2014-03-10T17:49:22", "title" : "Power of Attorney", "lastModifiedDatetime" : "2014-03-10T17:49:22", "filingParty" : "potential_patent_owner", "trialNumber" : "CBM2013-00013", "sizeInBytes" : 51759, "mediaType" : "application/pdf", "id" : 24, "type" : "power of attorney", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/24" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/24/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +13" } ] }, { "documentNumber" : "42", "filingDatetime" : "2014-03-10T17:49:22", "title" : "Related Matters", "lastModifiedDatetime" : "2014-03-10T17:49:22", "filingParty" : "potential_patent_owner", "trialNumber" : "CBM2013-00013", "sizeInBytes" : 35306, "mediaType" : "application/pdf", "id" : 25, "type" : "notice", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/25" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/25/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +13" } ] }, { "documentNumber" : "2023", "filingDatetime" : "2014-03-11T22:09:20", "title" : "PI-NET 2023", "lastModifiedDatetime" : "2014-03-11T22:09:21", "filingParty" : "patent_owner", "trialNumber" : "CBM2013-00013", "sizeInBytes" : 47759, "mediaType" : "application/pdf", "id" : 26, "type" : "exhibit", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/26" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/26/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +13" } ] }, { "documentNumber" : "45", "filingDatetime" : "2014-04-20T16:32:28", "title" : "Petitioner's Reply to Patent Owner's Corrected Response + to Petition", "lastModifiedDatetime" : "2014-04-20T16:32:29", "filingParty" : "petitioner", "trialNumber" : "CBM2013-00013", "sizeInBytes" : 63850, "mediaType" : "application/pdf", "id" : 27, "type" : "reply", "links" : [ { "rel" : "self", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/27" }, { "rel" : "download", "href" : "https://ptabdata.uspto.gov/ptab-api/documents/27/nativ +e" }, { "rel" : "trial", "href" : "https://ptabdata.uspto.gov/ptab-api/trials/CBM2013-000 +13" } ] } ] $
This is using
HTH, Hippo
|
|---|