How can i change the url path of a request_t

From: Herman Schultz <hermanschultz200@dont-contact.us>
Date: Mon, 16 Jul 2007 23:39:56 -0700 (PDT)

Hi,

I have a pointer to a request_t* org_req.

And I would like to change the url_path of that org_req struct:

So I did this:

 char* newURL = "http:// .... " ;

    request_t* new_req = urlParse(org_req->method, newURL);
     

    // set the org_req urlpath to the new_req's urlpath
    stringReset(&org_req->urlpath, new_req->urlpath.buf);

    // reget to make sure it is set.
    printf (" url 2 %s\n", mem->request->urlpath);

however, the last line above, I get a segmentation fault.

Can you please tell me what am I missing?

Thank you.

       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
Received on Tue Jul 17 2007 - 01:23:25 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:06 MDT