x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I make HTTP calls?

Is there anything built in for making HTTP calls? I can write a wrapper for libcurl pretty easy thanks to Unreal being C++ but I would like to avoid that if there is something already in the API that I am missing.

Product Version: Not Selected
Tags:
more ▼

asked Apr 01 '14 at 10:16 PM in C++ Programming

avatar image

lounges
5 3 5 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

There is an HTTP module that you can declare as a dependency.

`\Engine\Source\Runtime\Online\HTTP`

It should be able to address your needs from what I see. For a sample of how to use it you should look at the Epic Survey plugin.

Also, there are a couple other questions around on the same subject.

more ▼

answered Apr 02 '14 at 07:12 AM

avatar image

Bob_Gneu
369 6 11 79

avatar image lounges Apr 04 '14 at 12:00 AM

Thanks. Once I figured out how to reference the module this was exactly what i was looking for. It looks like it is using libCurl behind the scenes anyways. Do you know if it has support for HTTPS off top of your head?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

We have HTTP module implementations for various platforms. On windows we use WinInet by default and an optional use of LibCurl, for linux just LibCurl, for Mac/iOS we use the Cocoa library calls such as NSUrlConnection/NSMutableURLRequest, for consoles we use the APIs on those platforms. Https should be handled correctly last I checked. Just specify an URL as https:// instead of http:// . It's up to you to generate a trusted server certificate however.

more ▼

answered Apr 25 '14 at 02:21 AM

avatar image

Sam.Zamani STAFF
226 4 7 15

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question