Questions tagged [urlrequest]
247 questions
0
votes
3 answers
Is there a way to send updates from PHP to flash in the middle of a request?
I have a PHP process that does a bunch of stuff and I want to send feedback to the Flash client that calls it, as the request is being processed. However, since I'm listening for the COMPLETED event, I don't get the feedback until the PHP completes…

Yevgeny Simkin
- 27,946
- 39
- 137
- 236
0
votes
2 answers
How to add urlencoded parameter to httpBody in urlRequest
i have created one common class for alamofire request
i want to send parameters as aplication/x-www-form-urlencoded
how to add the parameters to my urlRequest
i have managed to add parameters as application/json to urlRequest using below code
…

Midhun Narayan
- 829
- 2
- 9
- 26
0
votes
0 answers
httpBody not passing JSON body with URLRequest
I'm trying to POST a call with httpBody containing JSON. When I run the code, I get Request JSON object for insert cannot be null. When I run the same URL and JSON body in PostMan, it works. When I remove the JSON body, I get the same error.
let…

Paul S.
- 1,342
- 4
- 22
- 43
0
votes
1 answer
How to create JSON Body for Post request in swift
I have to make a request by using the following Json Body. It is difficult for me to add "room" nodes dynamically while making json body.
{
"from": "2019-05-06",
"to": "2019-05-07",
"destinationId": "DXB",
"destination": "Dubai - United…

I Book Holiday
- 3
- 1
0
votes
1 answer
How do I resubmit URLRequest when unsuccessful?
I am unsure how to resubmit a URLRequest when it's unsuccessful.
I have a function that calls several API's. On one of the API requests, about half the time it is unsuccessful in the first attempt and I have to push the button on my app again to…

Jet.B.Pope
- 642
- 1
- 5
- 25
0
votes
1 answer
Kivy UrlRequest with https
I'm trying to get Python 3.7 Kivy code to retrieve https web data using UrlRequest. Code works fine with http, but I get no data when I change the url to any https. When I compile and run with both http or https, both run without errors. Is there an…

Brian
- 13
- 4
0
votes
1 answer
Downloaded images from the Metropolitan Museum collection are empty
I'm trying to download random public domain images from the Metropolitan Museum collection using their API (more info here : https://metmuseum.github.io/) and Python, unfortunatly the images I get are empty. Here is a minimal code :
import…

Hugo Delahaye
- 141
- 6
0
votes
1 answer
-- function-call with completion URLRequest - JSON
i did read a lot about functions with completion-handler, but now i have a problem how to call this function (downloadJSON) in the correct way. Which parameters do i have to give in the function and handle the result-data (json) in my own class,…

Ralf Bordé
- 333
- 4
- 18
0
votes
1 answer
Add content disposition param for uploadTask using URLSession and URLRequest
I am using URLSession 'uploadTask from file'
func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask
Almost everything works fine, but now our server needs an extra param as 'uploadKey' to be passed as content…

infiniteLoop
- 2,135
- 1
- 25
- 29
0
votes
2 answers
WKWebView does not open https://itunes.apple.com/app/id123456 link
Here is a little problem I just noticed in one of my iOS apps.
I use Xcode Version 10.1 and Swift 4.2.
The app has a button which when pushed brings up a view controller, this VC is in charge of opening a link to the app itself in itunes. I have…

Michel
- 10,303
- 17
- 82
- 179
0
votes
3 answers
Reading substring within quotes from a massive string in Python
I have the following…

TheCoder
- 87
- 2
- 11
0
votes
1 answer
Sending a POST request in swift but getting a 405 response (method not allowed)
Im making a POST request to the API. I have tested the API using Postman and another third party tool and Im getting a 200 response. But when I make a request from swift I get a 405 response (method not allowed) and an error message saying that…

iOSDev
- 1
- 1
0
votes
0 answers
Alamofire and Response allHTTPHeaderFields Issue
I'm talking with one API in iOS app using Alamofire for my network request.
So this api, in which i don't have access, at one response it sends me some headers with some values
For example
Set-Cookie: test1
Set-Cookie: test2
Set-Cookie: test3
but…

Konstantinos Natsios
- 2,874
- 9
- 39
- 74
0
votes
1 answer
Swift URLSession.shared.dataTask GET Request -1001 returns timeout
Sending a POST request to our NGINX Server works good with URLRequest and URLSession.shared.dataTask.
I can login to my app but when I try a GET request my server has no log that the request reached him. Finally I get the timeout error. Important, I…

Neneil
- 105
- 12
0
votes
2 answers
How to get response code from synchronous RequestFuture request
I am using the strava API for an app. I am making synchronous requests as can be seen by the code below.
try {
RequestQueue queue = Volley.newRequestQueue(context);
RequestFuture future = RequestFuture.newFuture();
…

Mark
- 25
- 1
- 1
- 5