Questions tagged [http-functions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
2 answers
73 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 ...
user avatar
13 votes
1 answer
278 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 ...
user avatar
  • 30.3k
12 votes
3 answers
572 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. ...
user avatar
  • 25.3k
3 votes
1 answer
250 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 ...
user avatar
  • 25.3k
1 vote
1 answer
143 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....
user avatar
  • 647
6 votes
2 answers
270 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 ...
user avatar
  • 30.3k
3 votes
1 answer
47 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. ...
user avatar
3 votes
0 answers
116 views

APIFunction with TextRecognize problems

I have a simple API that takes a recipe and returns the list of ingredients: ...
user avatar
  • 30.3k
2 votes
0 answers
115 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 ...
user avatar
  • 121
1 vote
1 answer
624 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 ...
user avatar
  • 433
1 vote
1 answer
112 views

Cannot submit valid form in FormFunction

I have a simple FormFunction like this: FormFunction[{"expr" -> ToExpression}, HTTPRequestData[] &] When I use ...
user avatar
7 votes
1 answer
234 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] ...
user avatar
  • 39.2k
5 votes
2 answers
226 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 ...
user avatar
2 votes
1 answer
66 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/...
user avatar
  • 1,397
2 votes
1 answer
887 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 ...
user avatar
1 vote
1 answer
233 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 ...
user avatar
  • 8,075