Skip to content

The purpose of this library is to send curl requests within python. Essentially, I am mimicing Of course this can be done using the built in python requests module but looking into the source code of python requests, there are some headers added by default and I wanted to be able to specify every bit of infromation sent in a request.

License

Notifications You must be signed in to change notification settings

obpsidian8/CurlBrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The purpose of this library is to send curl requests within python. Essentially, I am mimicking the requests sent by browsers under the hood to servers they communicate with.

I developed this by examing the request sent by my browser to different sites via the network tab of the developer window, and copying the various requests sent using the "copy as curl option". Then I began examining the diffennt stages of browser requests and serve responses to obtain resources.

Of course this can be done using the built in python requests module but looking into the source code of python requests, there are some headers added by default and I wanted to be able to specify every bit of information sent in a request.

The file to run needs to be in the main directory. (The same directory containing the RunTestCases.py file.

See RunTestCases.py file for examples/ demos.

About

The purpose of this library is to send curl requests within python. Essentially, I am mimicing Of course this can be done using the built in python requests module but looking into the source code of python requests, there are some headers added by default and I wanted to be able to specify every bit of infromation sent in a request.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages