5

How do I make an HTTPS request in Squeak or Pharo?

 2 years ago
source link: https://www.codesd.com/item/how-do-i-make-an-https-request-in-squeak-or-pharo.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How do I make an HTTPS request in Squeak or Pharo?

advertisements

How can I make an HTTPS request from Squeak or Pharo? HTTPClient and friends seem to lack any facilities for SSL.


Zodiac as mentioned above will enable you to make HTTPS requests from Zinc.

Enable it like this (recipe from the Pharo forum):

First download the SqueakSSL plugin and put it in your Pharo directory, and then load the necessary packages:

"Load Zinc HTTP Components"
Gofer it
  squeaksource: 'ZincHTTPComponents';
  package: 'Zinc-HTTP';
  package: 'Zinc-Tests';
  package: 'Zinc-Patch-HTTPSocket';
  load. 

"Load Zodiac including extras"
Gofer it
  squeaksource: 'Zodiac';
  package: 'Zodiac-Core';
  package: 'Zodiac-Tests';
  load. 

"Load extra Zinc support for Zodiac"
Gofer it
  squeaksource: 'ZincHTTPComponents';
  package: 'Zinc-Zodiac';
  load. 

"Switch to the Zn Zodiac socket factory"
ZnNetworkingUtils default: ZnZodiacNetworkingUtils new.

And you should be able to make requests against HTTPS resources.

Related Articles

How can I make queued http requests in the mule project

I am trying to integrate JIRA with Salesforce through cloudhub application. I have created a mule soft project (which is invoked each time when a worklog is updated or created in JIRA) and deployed it in cloudhub. From Jira I am using web hook instan

How do I make an http request using cookies on Android?

I'd like to make an http request to a remote server while properly handling cookies (eg. storing cookies sent by the server, and sending those cookies when I make subsequent requests). It'd be nice to preserve any and all cookies, but really the only

how can I make an HTTP request with Swift 3?

Im learning about Swift and i trying to make an HTTP request. My code is working but i dont know how to return the result of the request: func makeRequest(request: URLRequest)->String{ let task = URLSession.shared.dataTask(with: request){data, respon

How can I make several http requests in a factory

I was wondering if we can load multiple json files using a factory and a controller. Im pulling classifieds.json and myWords.json. Im seeing content from the former, but the content from the latter is not being displayed This is how i tired to incorp

Make an HTTP request to Pharo and get the response headers

how can I make an HTTP request and get both the response content and the response headers?Or using the new Zinc framework, something like: | response content headers | response := ZnClient new url: 'http://stackoverflow.com'; get; response. content :

How to make an HTTP request in Swift 2.0 (Xcode 7.2)

I am trying make a http request to a web service. It returns JSON data. And I am also want to parse this data. I am new at swift I try many ways but get nothing. Here is my service address: http://xxx.xxx.xxx.xxx/mobileservice/login/firmcode/mailaddr

How to make an HTTP request from SSIS?

I'm interested in knowing how I can make an HTTP call from SSIS. For example, I would like to be able to download a file from http://www.domain.com/resource.zip and record the datetime of the download and the destination of the file on the drive. I w

How to make several http requests in my case?

I am trying to user factory object to make multiple http requests. I have something like angular.module('App').factory('myFactory', function($http, $q) { var service = {}; service.setProduct = function(productObj) { _productObj = productObj; } servic

How to make an HTTP request in Swift?

I read The Programming Language Swift by Apple in iBooks, but cannot figure out how to make an http request (something like CURL) in Swift. Do I need to import Obj-C classes or do I just need to import default libraries? Or is it not possible to make

How to make an HTTP request with AFNetorking and NSURLRequest?

I am trying to use AFHTTPRequestOperationManager to make an HTTP request. I need to use AFHTTPRequestOperationManager because I want to be able to cancel all operations if necessary. I can't get this working for some reason. The completion blocks are

how to make an https request using php Http_Request2 ()

i want to make a https request using pear http_request2($url) class. i am able to make http request but not https. and the website facilitate both http and https. No prob with server responding to https. require 'HTTP/Request2.php'; $url = 'https://c

How to make an HTTP request via sock proxy (s) using python?

I'm trying to make a HTTP request using python. I tried changing my windows system proxy (using inetcpl.cpl ) url = 'http://www.whatismyip.com' request = urllib2.Request(url) request.add_header('Cache-Control','max-age=0') request.set_proxy('127.0.0.

Make an HTTP request to self in NodeJS / ExpressJS

I'm building an NPM module that needs to make an HTTP request to itself (the running web server). For example: var url = "http://127.0.0.1:" + (process.env.PORT || 3000) + path; request(url, function(error, response, body){ ... }); Is there a wa

Make an http request to insert the Google Calendar

I am using Tornado web and i am trying to use httpclient to make a http request to insert an event into Google Calendar. But i always get 400 bad request error. Could you help me on this? Thanks! event = { 'start': { 'date': '2012-07-11' }, 'end': {

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK