Questions tagged [http.client]

97 questions
0
votes
1 answer

Figure source of "invalid memory address ... " with http.client

I learning the go and struggling with this panic error... it working for some time, but soon end up with such exception panic: runtime error: invalid memory address or nil pointer dereference The function simply iterate over map of proxies until it…
MikeKlemin
  • 909
  • 1
  • 8
  • 26
0
votes
1 answer

accessing korbit api with python http.client

i've been trying to access following api: https://api.korbit.co.kr/v1/ticker/detailed i know i can access this using any internet browser, but i am having hard time implementing it to python. I used following code: import http.client conn =…
Keon Kim
  • 740
  • 3
  • 12
  • 27
-1
votes
1 answer

Problems with web scraping

How do I solve this error? Code def sv(): url = url2 resp=requests.get(url) if resp.status_code==200: print("Managed to connect to the website.") print("Info :-\n") …
-1
votes
1 answer

Python - http.client : GET request to TMDB API failed Error

I am badly stuck with the error and a submission due. conn = http.client.HTTPSConnection("api.themoviedb.org/3") conn.request('GET', '/person/5064/movie_credits?api_key={api_key}&language=en-US') …
Dharight
  • 71
  • 1
  • 8
-1
votes
1 answer

How to fix invalid URL error while using http.client?

I am trying to hit an api using http.client of pyhton3 to simulate how I would do the same in a web browser. However, http.client feels that url is inappropriate. This is what I am trying to do. import http.client connection =…
pankaj
  • 470
  • 5
  • 11
-1
votes
1 answer

How can I add extra headers to http.Request for tracing issues

In golang, it seems no hook methods exist for http.client, so I'm wondering how can I add extra headers like trace-id: xxx in framework. Ideal code is like below: // this func add a hook method to http-client to rewrite header client :=…
AndyChow
  • 103
  • 10
-1
votes
1 answer

Unshorten url in python 3

I am using this code for unshortening urls in python 3 , but the code returns the url as it is (shortened), so what should I do to get it unshortened? import requests import http.client import urllib.parse as urlparse def unshortenurl(url): …
Youcef
  • 1,103
  • 2
  • 11
  • 26
1 2 3 4 5 6
7