Questions tagged [get]

1

votes
1

answer
4.4k

Views

Getting apt-get on an alpine container

I have to install a few dependencies on my docker container, I want to use python:3.6-alpine version to have it as light as possible, but apk package manager which comes with alpine is giving me trouble so I would like to get the apt-get package manager. I tried: apk add apt-get and it didnt work....
NotSoShabby
1

votes
3

answer
127

Views

How to send a GET request with headers via python

I got fiddler to capture a GET request, I want to re send the exact request with python. This is the request I captured: GET https://example.com/api/content/v1/products/search?page=20&page_size=25&q=&type=image HTTP/1.1 Host: example.com Connection: keep-alive Search-Version: v3 Accept: applicatio...
milki
1

votes
3

answer
31

Views

How can I get the file size from a link without downloading it in python?

I have a list of links that I am trying to get the size of to determine how much computational resources each file need. Is it possible to just get the file size with a get request or something similar? Here is an example of one of the links: https://sra-download.ncbi.nlm.nih.gov/traces/sra46/SRR/00...
Joe B
1

votes
2

answer
44

Views

Cannot Get/ in node.js

I am following this http://www.expertphp.in/article/user-login-and-registration-using-nodejs-and-mysql-with-example link I get a cannot GET/ error and I have tried all the stackoverflow answers but it isn't getting solved. var express=require('express'); var bodyParser=require('body-parser'); var a...
VISHAL ISRANI
1

votes
0

answer
11

Views

Node.js - How to send sessionID to GET method in Express via request package?

I'm trying to login to my Node.js (Express) app with another Node.js created script to try create a virtual bot on my app. First, i sent a POST via 'request' package to my /api/user/login and then i tried to get data from /api/user/session where i must be logged. Request script: request.post({ url:...
Hellbyte
1

votes
1

answer
1.7k

Views

How can I get MIME type of the http response with media subtype?

I want to store MIME type of the response obtained from GET request. I have used the DetectContentType function but it gives me text/plain; charset=utf-8 for both js and css resource. I have to distinguish the filetype for each url and I'm depending on MIME type for that purpose. response, error :=...
Sunil
1

votes
2

answer
57

Views

Making PUT and GET Responses in Katalon Studio

I’m new in working with RESTful APIs. For my case I want to make an PUT Request and then GET it. I made an PUT Request and it worked. [1]: https://imgur.com/a/zlUTzYB But now I want to make an GET Request. Can I somehow make so that GET Request will automatically take PUT Requests statementId and...
brithwulf
1

votes
2

answer
156

Views

How to use invoke http to perform GET request in nifi?

I need to perform a get request from nifi to couchbase. The curl command is: curl http://HOST:PORT/query/service -d 'statement=select item.Date from bucket unnest bucket as item' -u USER:PASSWORD I tried using InvokeHttp and ExecuteStreamCommand but it keeps returning errors(status code 400). The fu...
Gal Itzhak
1

votes
3

answer
37

Views

AngularJs - Array.push() inside $http.get() produces a flawed array

I can't figure out what is wrong with my code. It seems to be a javascript issue. I'm loading a local txt file using $http.get (is there a different way?). I want to push this content into an array. For the sake of testing, I'm just pushing any string just to be sure that it doesn't have to do with...
Sergio
1

votes
2

answer
38

Views

Can it be done? Delete huge amount of files based on how old they are using Powershell

On server running on Windows 2012 R2, version PS C:\Users\admin> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 4 0 -1 -1 I need to delete files older than 180 days in a folder with a lot of subfolders. That is quite simple, BUT not when there are...
rhellem
1

votes
2

answer
22

Views

Python How to GET Image and then POST (via requests library)

I am using python to try and get an image from one API, and then post it to a separate API. So far I have this code: def create_item(token, user_id): url = '' headers = {'Authorization': 'Token {0}'.format(token)} image_url = '' image_obj = requests.get(image_url) data = { 'image': image_obj.content...
Hybrid
1

votes
1

answer
81

Views

How to hash GET parameters in url before show in url?

I have simple html form in my website: Enter message id And when I enter id and click to 'Encode' button showed my added ID. How I can show id parameter in hash way to user? Example functions for encode and decode:
Andreas Hunter
1

votes
1

answer
1.9k

Views

java.lang.IllegalArgumentException: URI is not absolute Error in spingboot application

I am trying to call an App1 from App2. Both are in springboot and are hosted in Cloudfoundry. I am getting the below error while doing the process. java.lang.IllegalArgumentException: URI is not absolute But when I call the App1 from postman it works perfectly. Also when I call App1(at cloudfoundry)...
Tulsi Jain
1

votes
0

answer
161

Views

Issue with php file_get_contents() in xampp running on Mac OS X

I wrote a PHP script which reads all JSON files in a directory. It processes the contents and creates a different array with required values. The script is called from AJAX with the returned value, and a CSV is created by JavaScript, which is downloaded on the client's computer. It is working fine o...
Debopam Parua
1

votes
1

answer
134

Views

file_get_contents fails, but POST request is made successfully

spoiler* convoluted code ahead Context main.php has a command-line like input, the file's form action attribute is submit.php. submit.php decides what other file to call, based on the input from main.php. In submit.php I adjust variables $url and $data, based on the input, then call file_get_content...
ebichuhamster
1

votes
0

answer
261

Views

GetPerspectiveTransform function error | opencv | java

I am trying to make an automatic perspective correction of quadrangle objects. I am getting error when I am using getPerspectiveTransform function: OpenCV Error: Assertion failed (src.checkVector(2, CV_32F) == 4 && dst.checkVector(2, CV_32F) == 4) in cv::getPerspectiveTransform Here is my code: Mat...
Fleczer
1

votes
0

answer
90

Views

Testing http intercetpor in angular2

I'm testing an angular2 HTTP interceptor and I get the following error: Error: Expected no open requests, found 1: GET /web-service it('check if request path...', inject([HttpClient, HttpTestingController], (http: HttpClient, httpMock: HttpTestingController) => { http.get('/web-service').subscribe(...
eugen sunic
1

votes
0

answer
24

Views

Symfony3- can´t access to collections data (get)

I have an object with several collection. I saved the data correctly and then, when I do 'object->getCollection()', I didn´t obtain the data. This are my entities: Persona: /** * @ORM\OneToMany(targetEntity='PersonaDomicilio',mappedBy='idPersona',cascade={'persist'},orphanRemoval=true) */ public $d...
1

votes
0

answer
168

Views

Unable to add authorisation in headers to a GET request using axios

Recently, I needed to access the API gateway in AWS using my localhost environment. I am using axios to do a GET request on the API gateway in AWS. The GET request requires an Authorization header in its request. I used the following piece of the code axios({ method: 'GET', url: ROOT_URL+'/users/me'...
shubhamagiwal92
1

votes
0

answer
225

Views

Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file

I am on Desktop with Ubuntu 14.04 LTS, Intel i3, 4 GB RAM & 320 GB HDD. Each time I try to install at, the time based scheduler, using: sudo apt-get install at I get error message, W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'restricted/...
user2787095
1

votes
2

answer
225

Views

Requests.get failing when using inside function

I am using python requests library to get the data from adzuna api . if i try r = requests.get('http://api.adzuna.com/v1/api/jobs/gb/search/1?app_id=appID\ &app_key=appKEY&results_per_page=50&\ what=entry%20level&content-type=application/json') print r.text it is fetching me data But if i wrap...
anilkunchalaece
1

votes
3

answer
92

Views

How to echo specific data from url

how to echo/print specific data from url using file_get_content. im only know basic from it here what i create for example here my content in real web title here description here casts here i want to print img src, h2 title and h2 description. what I want to achieve is load a litle information from...
jazuly aja
1

votes
2

answer
726

Views

Laravel 5 Build url with Laravel Form Get method

I'm trying to create a form that passes data via get to the controller but the URL looks allways like this: http://example.com/test?_token=VinwWFxKIhKvMqrrEBN5xwXhrmYQjLnOWV8s7dht¶m1=horse¶m2=cat¶m3=dog But I want something like this: http://example.com/test/param1=horse/param2=cat/para...
dwdawdawdaw
1

votes
1

answer
687

Views

Flask GET - Retrieve an undetermined number of parameters in the URL

WHAT: I have a Flask server and I would like to build a route and pass it an undetermined number of parameters via a GET method. WHY: I would like to give the user the ability to pick several dates from a date picker, and give this list to the server which would make an SQL request to my database to...
Cyrille Dakhlia
1

votes
0

answer
37

Views

optimizing the time for get requests to a server in python

I have to fetch a large list of image url's from a csv and generate get requests for those urls. Currently I am able to have a output of 50 urls i 17s. I want to have these 50 image urls in 5s. How can I optimize by get request? I have read that one way would be to do multithreading by I have no ide...
Rehan Aziz
1

votes
1

answer
956

Views

How to get access token in retrofit

i'm creating a registration app, i already got client id and secret, now i have to do get request and get access token and refresh token. I have this link https://supptop.mymix.net/api/token?grant_type=password&cl[email protected]gmail.com&password=pass...
1

votes
0

answer
60

Views

How to get GET-Vars via typoscript as value in form field in Ext:form in TYPO3 6.2.32+

After updating a website from TYPO3 6.2.31 to 6.2.35 (ELTS) the following TypoScript code inside a form plugin doesn't work anymore. 20 = HIDDEN 20 { name = myVar value = TEXT value.data = GP:myVar } I don't get the value from the GET var myVar into the hidden field. There were a security issue fix...
klaks
1

votes
1

answer
52

Views

Foursquare not returning all attributes from a search

I'm making requests to Foursquare using GET https://api.foursquare.com/v2/venues/search in an attempt to get the 'price' attribute. However, it doesn't seem to return all the listed attributes that this docs page details. https://developer.foursquare.com/docs/api/venues/search This is the object t...
Jordan Tucker
1

votes
0

answer
61

Views

XAMPP php file_get_contents takes exactly 30s?

So installed XAMPP and have a php file that requests some content with file_get_contents($url) For some reason this call takes exactly 30 seconds. If I do 2 calls after each other, the php execution time is at least 60 seconds. However, the request is successful and gets the content from the URL! It...
Alex Schneider
1

votes
0

answer
35

Views

External GET requests never finish with some websites regardless of the library used, why?

My Google Cloud Functions gets a URL from a database and then retrieves the source of the webpage in question using a GET request. I used Axios, Request, and native HTTP(S) modules. Most websites work just fine and there is no problem whatsoever. Yet, for that URL https://www.healthline.com/health/f...
Lazhar
1

votes
2

answer
279

Views

Replay a particular type of event from eventstore

I am currently using the Event Store to handle my events. I currently need to replay a particular type of event as I have made changes in the way they are subscribed and written to DB. Is this possible? If so, how can it be done? Thanks.
gvk
0

votes
0

answer
4

Views

How to display data on xamarin.android edit text using web api

I'm trying to display the data from SQL server using web API, get method on edit text in xamarin.android. The data will display on the edit text once the button is clicked. I've followed all the steps(exactly) as in the Youtube tutorial but unfortunately, the data did not show up on the edit text...
Yonce
1

votes
1

answer
137

Views

Zoopla property listing API returns “Unknown location” using python and requests

I am trying to retrieve the property listing using Python 3 and the requests library. For some reason, the API returns error code 7 'Unknown location entered'. The same parameters seems to work well on Zoopla's IO-Docs where results are returned. My request: import requests api_key = xxxxxxxxx r3 =...
1

votes
1

answer
1k

Views

Flask add resource endpoint for GET method only

How do i make Resource to pass subdomain as an argument only when GET method is triggered? localhost:5009/my_url/9952 where get method should do some stuff based on id (9952 in this case) and localhost:5009/my_url where post does not require any id but it accepts json instead. Currently i have the f...
PYPL
1

votes
1

answer
39

Views

Error in OData GET returns 406/404 with multiple parameters in different cases

I have been trying executing a get method with multiple parameters but sometime result is 404 or else if it finds the method then 406(Not Acceptable). It is working with single params. CASE 1: Single Params -> Working returns string Request url - http://localhost/odata/Monitoring/GetTestingDone(num...
Ankur Rai
1

votes
0

answer
387

Views

Working with zoho api's

I am working on ZOHO API's. Using POSTMAN I am trying to GET the details of a project. The API is as follows GET /portal/[PORTALID]/projects/[PROJECTID]/ Sample Response Status: 200 Success Content Type: application/json;charset=utf-8 { 'projects': [{ 'id': 170876000000765009, 'task_count': { 'open...
Faisal
1

votes
0

answer
224

Views

In Apache Kafka, how can I have conditional message publication in order to support Optimistic Concurrency

I want to use Apache Kafka to power an event-sourced persistence. I know that other event-based persistence support Optimistic Concurrency, such as described in Event Store documentation, however, the following - still unresolved, low-priority - ticket seems to indicate it is not a possibility at th...
Fabio Salvalai
1

votes
0

answer
311

Views

Get childitem and path too long

I realise this question seems to have been asked a thousand times before, and I've read most if not all the suggestions (most common being new ps-drive or using alphaFS). I just never see that suggestion actually put into code. My program works fine the way I've coded it for now, with 1 exception b...
Michael
1

votes
0

answer
43

Views

GET http:/// HTTP/1.1 - Curl doesn't extract GET request

I wrote a simple proxyserver code that connects to a client (currently the local machine) and retrieves data from a server (again running on the local machine) through HTTP GET requests that I incorporate into the curl command Here's the curl command curl -x http://localhost:12345 ​ http://127.0....
Jayitha Reddy
1

votes
2

answer
27

Views

Dividing an array of ids sent by GET method into seperate ids Dynamically

i have an array containing several ids sent by GET method, and i want to get each id by a variable , my code was fixed for 2 ids only and i retrieved them using the following code : $searchString = ','; if( strpos($_GET['id'], $searchString) != false ) { $claimID = explode( ',', $_GET['id'] ); $...
Lalati

View additional questions