0

I'm using httpi library.

Usually in http libraries we can set a port for http connection, but in httpi I can't.

How to assign port for HTTPI connection?

megas
  • 21,401
  • 12
  • 79
  • 130

1 Answers1

1

Normally you'd include the port number in the URL, like this:

request = HTTPI::Request.new("http://example.com:1234/")
RichieHindle
  • 272,464
  • 47
  • 358
  • 399