forked from KolibriOS/kolibrios
Update netsurf for newer http.obj
git-svn-id: svn://kolibrios.org@5535 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d52d41e20d
commit
d21ff04bea
@ -682,7 +682,7 @@ bool fetch_curl_initiate_fetch(struct curl_fetch_info *fetch, struct http_msg *h
|
|||||||
if(fetch->post_urlenc)
|
if(fetch->post_urlenc)
|
||||||
{
|
{
|
||||||
LOG(("http_post on %s with headers: %s", zz, fetch->post_urlenc));
|
LOG(("http_post on %s with headers: %s", zz, fetch->post_urlenc));
|
||||||
wererat = http_post(zz, NULL, "application/x-www-form-urlencoded", strlen(fetch->post_urlenc));
|
wererat = http_post(zz, NULL, NULL, NULL, "application/x-www-form-urlencoded", strlen(fetch->post_urlenc));
|
||||||
|
|
||||||
if(wererat == 0)
|
if(wererat == 0)
|
||||||
{
|
{
|
||||||
@ -699,7 +699,7 @@ bool fetch_curl_initiate_fetch(struct curl_fetch_info *fetch, struct http_msg *h
|
|||||||
else /* GET Request */
|
else /* GET Request */
|
||||||
{
|
{
|
||||||
LOG(("http_get on URL : %s", zz));
|
LOG(("http_get on URL : %s", zz));
|
||||||
wererat = http_get(zz, NULL); /* Initiates the GET on the handle we want to initiate for */
|
wererat = http_get(zz, NULL, NULL, NULL); /* Initiates the GET on the handle we want to initiate for */
|
||||||
|
|
||||||
if(wererat == 0) /* http_get failed. Something wrong. Can't do anything here */
|
if(wererat == 0) /* http_get failed. Something wrong. Can't do anything here */
|
||||||
{
|
{
|
||||||
|
@ -13,12 +13,12 @@ extern int mem_ReAlloc();
|
|||||||
|
|
||||||
int (* __stdcall http_init)(void);
|
int (* __stdcall http_init)(void);
|
||||||
// On the next line, we should tell the C compiler that this procedure actually returns a pointer. (to the http_msg struct)
|
// On the next line, we should tell the C compiler that this procedure actually returns a pointer. (to the http_msg struct)
|
||||||
unsigned int (* __stdcall http_get) (char * url, char * add_head); //yay, it's NOT uint, but hey, C is stubborn, and I'm dumb
|
unsigned int (* __stdcall http_get) (char * url, unsigned int identifier, unsigned int flags, char * add_head); //yay, it's NOT uint, but hey, C is stubborn, and I'm dumb
|
||||||
int (* __stdcall http_receive) (unsigned int identifier);
|
int (* __stdcall http_receive) (unsigned int identifier);
|
||||||
void (* __stdcall http_free) (unsigned int identifier);
|
void (* __stdcall http_free) (unsigned int identifier);
|
||||||
char * (* __stdcall http_find_header_field) (struct http_msg *http_ahoy, char *field_name); //This is crazzzzzzyyyyyy
|
char * (* __stdcall http_find_header_field) (struct http_msg *http_ahoy, char *field_name);
|
||||||
char * (* __stdcall http_unescape_url) (char * url_asciiz);
|
char * (* __stdcall http_unescape_url) (char * url_asciiz);
|
||||||
char * (* __stdcall http_post) (char *url, char *headers, char *content_type, int content_length);
|
char * (* __stdcall http_post) (char *url, unsigned int identifier, unsigned int flags, char *headers, char *content_type, int content_length);
|
||||||
int (* __stdcall http_send) (struct http_msg *handle, char *data, unsigned int length);
|
int (* __stdcall http_send) (struct http_msg *handle, char *data, unsigned int length);
|
||||||
void (* __stdcall http_disconnect) (struct http_msg *handle);
|
void (* __stdcall http_disconnect) (struct http_msg *handle);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user