Questions tagged [http-functions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
70 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 ...
13
votes
1answer
272 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 ...
11
votes
3answers
533 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. ...
3
votes
1answer
158 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 ...
1
vote
1answer
89 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....
6
votes
2answers
226 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 ...
3
votes
1answer
45 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. ...
3
votes
0answers
107 views

APIFunction with TextRecognize problems

I have a simple API that takes a recipe and returns the list of ingredients: ...
2
votes
0answers
98 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 ...
1
vote
1answer
480 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 ...
1
vote
1answer
102 views

Cannot submit valid form in FormFunction

I have a simple FormFunction like this: FormFunction[{"expr" -> ToExpression}, HTTPRequestData[] &] When I use ...
7
votes
1answer
224 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] ...
5
votes
2answers
184 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 ...
2
votes
1answer
62 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/...
2
votes
1answer
759 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 ...
1
vote
1answer
217 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 ...