Questions tagged [urlrequest]
247 questions
0
votes
1 answer
python 3 JSON wex.nz
I have an issue with json on Python3.
I try to get the "pairs" from string of URL: https://wex.nz/api/3/info
This is my code:
import urllib.request
import json
url= 'https://wex.nz/api/3/info'
content=urllib.request.urlopen(url)
for line in…

Lennart Groß
- 1
- 1
0
votes
2 answers
Run multiple URLRequest in for loop execute one after previous finished
In my app I have a task in which user will enter the from and to date and the url will fetch the data. Each URL will return large sized JSON string from the server.
Problem arises when user enters larger date interval which makes the server to hang.…

Praveen Kumar
- 547
- 1
- 7
- 33
0
votes
2 answers
URLSession results in NIL data
I'm trying to learn Swift, and I have a little project with Google's places API.
I have a method for fetching places details, which uses URLSession in swift to send the request:
func fetchRestaurantDetails(placeId: String) -> Void {
let…

em0605
- 197
- 2
- 9
0
votes
1 answer
Web view: Returning nil at loadRequest while true in URLRequest
Web view: Returning nil at loadRequest while true in URLRequest
I don't know where is wrong.
import UIKit
class DetailViewController: UIViewController, UIWebViewDelegate {
@IBOutlet weak var designatedWebView: UIWebView!
var webview:…

이상덕
- 1
- 4
0
votes
1 answer
Cannot disable cache for requests
I have got a problem in SWIFT 3, trying to disable cache for the requests, server sends updated JSON texts, but my application still shows old data. This happens only when cellular data is on, with WIFI everything works.
Please, advise how to fix…

George Chokhonelidze
- 73
- 1
- 8
0
votes
1 answer
CFNetwork crashes app if URLRequest timeout then user authenticates via Kerberos
I develop an enterprise iOS application that uses kerberos for authentication. I have a timeoutInterval = 30 for each request.
Authentication and url requests work just fine if user enters the password and passes the password verification before…

theFatih
- 21
- 6
0
votes
1 answer
Kivy UrlRequest called as a class - Methods not executed?
Trying to experiment and build a class resolving around the use of UrlRequest just to check if a given URL is valid. Turns out being a bit more difficult than anticipated!
The issue is that the on_success and on_failure/error methods defined as part…

Omar Little
- 45
- 1
- 5
0
votes
1 answer
What additional data to send in URL request?
Short version: How do I know how to phrase additional data (like specific options on the page that display different html files but belong to the same URL) when getting an URL with urllib?
Long version:
I am having trouble to figure out how to…
0
votes
1 answer
Flasch cs4 - Action Script 3 - why new URLRequest doesn't work in chrome?
I heave a map in Flash, and some cities are a button.
When you click in the button, open the webpage of the city.
This is the code:
import flash.events.MouseEvent;
import flash.net.URLRequest;
import…
0
votes
1 answer
AS3 URLLoader unable to find local file
Using AS3 Loader object's load(new URLRequest('file.swf'), and the file is in the same directory as the FLA file. Just read that flash looks for files based on the application directory, but even when using the absolute file path flash can't find it…

slackexchange
- 55
- 1
- 9
0
votes
1 answer
How do you create Login page via URL request in Objective C in Xcode?
I am making an attempt to create a login after doing some research, but my following code doesn't seem to legitimately have a user signed and keep track of his information once he logs in and keep the user logged in until logged out.
If anyone can…
user2423124
0
votes
0 answers
Flash AS3 How can I get back result value from loader class
I was used to making loader in the timeline, so I had no problem with my loader.
Howerever the problem's happended when I made this one to class.
I got runtime error #1067.
error 1067: Implicit coercion of a value of type string to an unrelated type…

Richard
- 351
- 4
- 17
0
votes
1 answer
Loading a swf named in xml into a parent swf in Actionscript 3
OK, I have a situation where I use loadvars to load an xml file, which has the address of 2 swf's on the server. I can trace the xml items so know they are loading. So I'm trying to load the swf's but am running into problems. First problem, the…

Jack
- 1
- 1
0
votes
1 answer
As3 urlrequest charset
var urlRequest:URLRequest = new URLRequest("子系统.swf");
loader.load(urlRequest);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
Everything works fine when i use native swf to load another swf.
But after i embed my main…

dedowsdi
- 209
- 2
- 8
0
votes
1 answer
Kivy app (on android) crashes when attempting to use google directions api
I new to Kivy (and relatively new to Python) and I am having a problem getting UrlRequests to work. In particular, I am trying to use the google directions api in an App for android.
First of all, the code works (completely) when I run the main.py…

liamshock
- 21
- 6