lorien
lorien
Use `update_grab_instance`
Hey, there was such feature and I've removed it deliberately from `request()` method. Method `request()` is about sending/receiving network data, it is not about handling business logic like repeating request...
Yes, you are right. At the current moment I can't say which way I want this feature be implemented. Anyway, I do not like the way you proposed. As I...
I was not aware that passing empty string as header value forces header to be removed from request. That does not look correct. I mean that current Grab behavior does...
At least author of Grab does not use empty headers in this way and even does not know that it works like this. So, nope, not everyone.
According to this https://tools.ietf.org/html/rfc7230#section-3.2 empty value is allowed > field-value = *( field-content / obs-fold )
I've reported bug to pycurl project: https://github.com/pycurl/pycurl/issues/493
Possible solution: fix invalid cookies in `header_processor` function in `grab.transport.curl`
Oleg, is there any other way to get HTTP headers of *request*?
Yeah, the only way I found is using VERBOSE flag and debug callback that receives various debug info including outgoing headers.