327 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
284
views
httplib send content with the content provider and smart pointer
I want to use the c++ httplib feature of the server to send a content with a content provider.
But I want to use it with a smart pointer because of previous calculation doing before the dispatch.
If I ...
1
vote
1
answer
68
views
Sending boost/asio IP commands within a httplib REST server not working
I am trying to send boost/asio IP commands withing a REST server and it appears as if nothing actually happens. For better context I have a method that will send the IP commands when a watchdog timer ...
0
votes
1
answer
228
views
Python - check if empty response from GET request with HTTP lib
I have a simple basic question but I cannot find a reliable answer online nor in the lib's docs.
I have a sample code with does a GET request in Python, using lib http.client .
I want to check if the ...
0
votes
1
answer
934
views
How to Embed HTML/JS Frontend Files into a C++ Web Server Executable?
I have a C++ application that uses httplib to serve an HTML/JS frontend from a folder. Currently, I require both the compiled C++ program and this folder for the application to work. Is there a way to ...
0
votes
2
answers
3k
views
httplib could not establish connection
I'm working on C++ software that has to communicate with an API via REST API. I'm using httplib. I do the next:
httplib::SSLClient cli("https://www.google.com");
httplib::Result res = cli....
0
votes
1
answer
468
views
Trouble using pip to install httplib
I recently deleted and reinstalled Pip, and I have been having problems using pip ever since then. I'm trying to install a module called httplib however my Mac terminal comes up with the following ...
0
votes
0
answers
109
views
Automate book upload django
I am working on a project that allows me to upload books to database using django.
For testing purposes and i order to save time, i want to automatically create multiple instance of a books to ...
1
vote
0
answers
1k
views
How to fix "hostname mismatch" error when connecting using http.client.HTTPSConnection?
I have a Python program which makes requests using httplib/http.client. It works beautifully in Python 2.7. Both Python2 and Python3 work 100% of the time with http. However, the program fails for ...
0
votes
0
answers
96
views
signal SIGFPE using cpp-httplib
I'm using httplib in a program.After a while some error happen and the program will shutdown.
gdb gives these :enter image description here
I wonder what cause this error and How can I fix this?
0
votes
1
answer
827
views
Trying to send Python HTTPConnection content after accepting 100-continue header
I've been trying to debug a Python script I've inherited. It's trying to POST a CSV to a website via HTTPLib. The problem, as far as I can tell, is that HTTPLib doesn't handle receiving a 100-continue ...
0
votes
0
answers
98
views
Error 400 sharefille api python3 with SSO login
I have a small snippet from api.sharefile.com
def authenticate(hostname, username, password):
uri_path = '/oauth/token'
headers = {
'Content-Type': 'application/x-www-form-urlencoded'
...
0
votes
0
answers
437
views
Main thread slows down threads 2-3x times
I have 2 files - first of them parser_thread_emulation.py that spawns threads that do what is inside parser_emulation.py file and main () has while infinite loop as well.
File parser_thread_emulation....
0
votes
1
answer
220
views
No http lib found to perform ajax request in VJSF
I use VJSF to fill selects using the results from HTTP requests.
Then I faced a bug that is stressful.
Following is my code.
<template>
<v-app id="app">
<v-container>...
4
votes
1
answer
9k
views
HTTPS request with Python standard library
UPDATE: I managed to do a request with urllib2, but I'm still wondering what is happening here.
I would like to do a HTTPS request with Python.
This works fine with the requests module, but I don't ...
0
votes
1
answer
169
views
Python code for REST calls with cookiejar file
I use following curl commands to fetch data using cookiejar file:
$ curl -sk -X 'POST' -d "[email protected]&password=mypassword" -c app.cookie-jar -k https://website.com/auth/authenticate
...