Skip to main content

Questions tagged [http-functions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
73 views

How to setup HTTPRequest of type multipart/mixed with boundary properly in Wolfram Language?

I am trying to query the Tableau REST API using Wolfram. I have been able to send all the other types of HTTPRequest to it ...
user13892's user avatar
  • 9,443
1 vote
0 answers
87 views

HTTPRequest append cookies data but not working

First I use ClearCookies[All]; ck = URLRead @ HTTPRequest["https://wolfram.com",CookieFunction->Print] to get an example of cookies. Then I save the ...
Schwarzer's user avatar
1 vote
1 answer
502 views

Format of api call for Open AI chat completions endpoint

I've been using MMA (v13.1.0) to experiment with various apis provided by OpenAI (https://platform.openai.com/docs/api-reference). For example, OpenAI provides a chat completion endpoint using the '...
MSC02476's user avatar
  • 699
0 votes
0 answers
38 views

Using HTTPRequest to Obtain an Access Code

I am trying to create a Mathematica equivalent to the following code: ...
MMAUser's user avatar
  • 409
3 votes
1 answer
527 views

Access openai with HTTPRequest but body parameters seems not function

Using Mathematica 13.0 on Windows 10 codes are below ...
Schwarzer's user avatar
2 votes
1 answer
141 views

Parsing HTTP POST request or how to find a string in a byte array

I am a developer of a Mathematica web-server (see TinyWEB). I managed to parse a multipart POST request containing text files, however, it is hard to expand it to any types of binary data like JPEG, ...
Kirill Vasin's user avatar
  • 1,245
0 votes
1 answer
116 views

How to obtain stock information from a website

I want to obtain some information of stock markets from TradingView website. For instance, let us access to S&P index chart through the URL, https://www.tradingview.com/chart/?symbol=SP%3ASPX Now, ...
cheese.burger's user avatar
5 votes
2 answers
106 views

How can I find what UserAgent gets attached to my URL requests?

The documentation for HTTPRequest notes that it is possible to indicate a user agent, and that The default "UserAgent" is typically "Wolfram ...
Emilio Pisanty's user avatar
14 votes
1 answer
292 views

Easily download SE posts as notebooks?

Is there a common method of grabbing an SE post or answer here as a formatted notebook so that you can immediately run it, instead of copy-pasting the code blocks? I've heard SSE uses MarkdownSharp ...
M.R.'s user avatar
  • 31.6k
12 votes
3 answers
838 views

Bug with Json payload with diacritics for HTTPRequest

Working in the creations of APIs with Mathematica 12.2, I got this problem with diacritics when sending JSON data. Here is a toy code using httpbin. ...
Murta's user avatar
  • 26.3k
3 votes
1 answer
519 views

How do I execute HTTPRequest with Binary Data?

I'm playing with Salesforce in Mathematica trying to automate some PDF upload. I would like to know how can I execute the HTTPRequest as described by the curl below: Here is the link for Salesforce ...
Murta's user avatar
  • 26.3k
1 vote
1 answer
534 views

Accessing Nutritionix API

I'm working on a project to build a graph based on nutritional elements of common foods. A popular source of this information is Nutritionix, which provides data via a set of APIs. I'm using MMA (v12....
MSC02476's user avatar
  • 699
7 votes
2 answers
388 views

Curl analog with URLRead/Execute?

I have a working curl command: curl https://myapp.herokuapp.com/doit -F filedata=@path/to/img.jpg How do I write this in the modern way with ...
M.R.'s user avatar
  • 31.6k
4 votes
1 answer
55 views

Should HTTPRequest return the same as curl in this case

The following shell script is used to access an IoT device that returns a JSON string, the content of which is not important for this question. ...
bobthechemist's user avatar
3 votes
0 answers
134 views

APIFunction with TextRecognize problems

I have a simple API that takes a recipe and returns the list of ingredients: ...
M.R.'s user avatar
  • 31.6k
2 votes
0 answers
170 views

How should I connect to an FTP server from Mathematica running under Windows?

I found relevant information on the problem for Linux or MacOS, but I run programmes under Windows. I want to connect to a friend's FTP server to download some files. Of course the server has wants a ...
deuterium's user avatar
  • 121
4 votes
1 answer
1k views

Basic API Key authentication not working with URLExecute

I am a newbie with RESTful APIs and have never tried accessing one from inside Mathematica. I am trying to access the Companies House API, in the UK. The following command works fine from the Terminal ...
pdini's user avatar
  • 485
2 votes
1 answer
141 views

Cannot submit valid form in FormFunction

I have a simple FormFunction like this: FormFunction[{"expr" -> ToExpression}, HTTPRequestData[] &] When I use ...
bcegkmqs23's user avatar
7 votes
1 answer
259 views

How to import a ByteArray from GenerateHTTPResponse?

Without GenerateHTTPResponse the import works as expected. ba = ExportByteArray[Plot[x, {x, 0, 1}], "PNG"]; ImportByteArray[ba] ...
Edmund's user avatar
  • 42.4k
7 votes
2 answers
479 views

"Accept" header in HTTP request for DOI Content Negotiation

I am trying to get the .bib info from a DOI, following the guide here. Basically, I wish to run ...
Per Alexandersson's user avatar
2 votes
1 answer
82 views

How can I deal with a 502 error? [closed]

I am working on a program that interfaces with a web API. Mathematica runs perfectly fine for a few hours and then, after a while, will sometimes return: The request to URL https://api.polygon.io/...
Jmeeks29ig's user avatar
  • 1,447
2 votes
1 answer
1k views

Using HTTPRequest "Method"->"PUT" with photos in AWS S3

I'm able to post strings (text files) to AWS S3 using REST API's, but I can't post photos/files. Because the "content-length" or ByteCount of a Wolfram Language ...
Eric William Smith's user avatar
1 vote
1 answer
294 views

How to get URL request response in Mathematica?

I am considering the following link: https://myimmitracker.com/en/ca/trackers/consolidated-e-apr-tracker-express-entry-permanent-residency-application It produces the following page with a table in ...
user13892's user avatar
  • 9,443